svelte-eui-icons Svelte Themes

Svelte Eui Icons

Elastic EUI SVG icons as Svelte components

svelte-eui-icons

Elastic EUI SVG icons as Svelte components.

Try it in the Svelte REPL.

Install

This library requires svelte version >=3.20.x because it uses $$restProps.

yarn add -D svelte-eui-icons

Usage

<script>
  import Alert from "svelte-eui-icons/lib/Alert";
</script>

<Alert />

Refer to ICON_INDEX.md for a list of supported icons.

API

$$restProps are forwarded to the svg element.

Forwarded events

  • on:click
  • on:mouseover
  • on:mouseenter
  • on:mouseout
  • on:keydown

Changelog

License

MIT

Top categories

Loading Svelte Themes