3.1.1 • Published 4 months ago

svelte-bootstrap-icons v3.1.1

Weekly downloads
196
License
MIT
Repository
github
Last release
4 months ago

svelte-bootstrap-icons

NPM

Bootstrap SVG icons as Svelte components with zero dependencies.

This package uses svelvg to convert source SVG files into Svelte components.

Try it in the Svelte REPL.


Installation

# Yarn
yarn add -D svelte-bootstrap-icons

# NPM
npm i -D svelte-bootstrap-icons

# pnpm
pnpm i -D svelte-bootstrap-icons

Usage

See ICON_INDEX.md for a list of supported icons.

Base import

<script>
  import { Alarm, Bank, CloudMoon } from "svelte-bootstrap-icons";
</script>

<Alarm />
<Bank />
<CloudMoon />

Direct import (recommended)

Import the icon directly for faster compiling during development.

<script>
  import Alarm from "svelte-bootstrap-icons/lib/Alarm.svelte";
</script>

Custom size

$$restProps are forwarded to the svg element.

Use the width and height attributes to customize the icon size. The default is 16px.

<Alarm width={24} height={24} />

Custom color

Use the fill attribute to specify a custom color.

<Alarm fill="red" />

Changelog

Changelog

Contributing

See the contributing guidelines.

License

MIT

3.1.1

4 months ago

3.1.0

8 months ago

3.0.0

11 months ago

2.3.0

1 year ago

2.2.1

2 years ago

2.3.1

1 year ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.7.2

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-alpha5

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago