obra-icons-svelte
v1.21.0
Published
Obra Icons for <a href="https://svelte.dev/">Svelte</a>.
Downloads
1,549
Readme
obra-icons-svelte
Obra Icons for Svelte.
A simple, consistent set of icons, perfect for user interfaces. Obra Icons consists of more than 950 icons.
Installation
npm install obra-icons-svelte
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 layersoi-vector
: Vector layersoi-ellipse
: Ellipse layersoi-box
: Box layersoi-triangle
: Triangle layersoi-incomplete-triangle
: Incomplete triangle layersoi-mini-square
: Mini square layersoi-line
: Line layersoi-mini-dot
: Mini dotsoi-medium-dot
: Medium dotsoi-dot
: Regular dots
Which icons are available?
For a full reference, see the list at Obra Icons website.