Obra Icons for Svelte.
A simple, consistent set of icons, perfect for user interfaces. Obra Icons consists of more than 600 icons.
See package at https://www.npmjs.com/package/obra-icons-svelte .
For a full reference, see the list at Obra Icons website.
npm install obra-icons-svelte
<script>
import { IconActivity } from 'obra-icons-svelte';
</script>
Use the size
, color
and strokeWidth
props to customize the icon.
<IconActivity size={24} color="red" strokeWidth={1} />
For a visual example please refer to this REPL.
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 dotsFor a visual example please refer to this REPL.