Elastic EUI SVG icons as Svelte components.
Try it in the Svelte REPL.
This library requires svelte version >=3.20.x because it uses $$restProps
.
yarn add -D svelte-eui-icons
<script>
import Alert from "svelte-eui-icons/lib/Alert";
</script>
<Alert />
Refer to ICON_INDEX.md for a list of supported icons.
$$restProps
are forwarded to the svg
element.