1.23.1 • Published 7 months ago

obra-icons-svelte v1.23.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

obra-icons-svelte

Obra Icons for Svelte.

A simple, consistent set of icons, perfect for user interfaces. Obra Icons consists of more than 1000 icons.

Installation

npm install obra-icons-svelte

This package works with Svelte 3/4/5.

Importing an icon

<script>
	import { IconAdd } from 'obra-icons-svelte';
</script>

Customizing an icon

Use the size, color and strokeWidth props to customize the icon.

<IconAdd size={24} color="red" strokeWidth={1} />

Targeting with CSS

Every SVG contains an obra-icon class on the top level SVG element, that you can target with CSS.

Next to this, the inner elements are also targetable, with the following class names:

  • oi-fill: Fill layers
  • oi-vector: Vector layers
  • oi-ellipse: Ellipse layers
  • oi-box: Box layers
  • oi-triangle: Triangle layers
  • oi-incomplete-triangle: Incomplete triangle layers
  • oi-mini-square: Mini square layers
  • oi-line: Line layers
  • oi-mini-dot: Mini dots
  • oi-medium-dot: Medium dots
  • oi-dot: Regular dots

Which icons are available?

For a full reference, see the list at Obra Icons website.

1.23.0

7 months ago

1.23.1

7 months ago

1.19.0

10 months ago

1.18.0

11 months ago

1.17.0

11 months ago

1.21.0

10 months ago

1.20.0

10 months ago

1.15.0

12 months ago

1.14.0

12 months ago

1.13.0

12 months ago

1.16.2

11 months ago

1.16.1

11 months ago

1.16.0

11 months ago

1.12.0

2 years ago

1.11.2

2 years ago

1.10.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago