Getting Started - Svelte Remix v2
Requirements #
- Svelte 5 or later
Installation #
Install Svelte:
npx sv create myapp
cd myapp
pnpm i -D svelte-remix
pnpm dev
Basic Usage #
In a svelte file:
<script>
import { AttachmentLineBusiness } from 'svelte-remix';
</script>
<AttachmentLineBusiness />
IDE support #
If you are using an LSP-compatible editor, such as VSCode, Atom, Sublime Text, or Neovim, hovering over a component name will display a documentation link, features, props, events, etc.
Faster compiling #
If you need only a few icons from this library in your Svelte app, import them directly. This can optimize compilation speed and improve performance by reducing the amount of code processed during compilation.
<script>
import AttachmentLineBusiness from 'svelte-remix/AttachmentLineBusiness.svelte';
</script>
<AttachmentLineBusiness />
Passing down other attributes #
Since all icons have ...restProps
, you can pass other attibutes as well.
<AttachmentLineBusiness id="my-svg" transform="rotate(45)" />
Import all #
Use `import * as Icon from 'svelte-remix`.
<script>
import * as Icon from 'svelte-remix';
</script>
<Icon.AttachmentLineBusiness />
<Icon.AttachmentLineBusiness size="30" />