obra-icons-svelte
TypeScript icon, indicating that this package has built-in type declarations

1.12.0 • Public • Published

obra-icons-svelte

Obra Icons for Svelte.

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

Installation

npm install obra-icons-svelte

Importing an icon

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

Customizing an icon

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

   <IconActivity 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.

Readme

Keywords

none

Package Sidebar

Install

npm i obra-icons-svelte

Weekly Downloads

5

Version

1.12.0

License

none

Unpacked Size

1.45 MB

Total Files

1559

Last publish

Collaborators

  • wolfr