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

1.21.0 • Public • Published

obra-icons-react

Obra Icons for React.

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

Installation

npm install obra-icons-react

Importing an icon

import { IconAdd } from 'obra-icons-react';

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.

Readme

Keywords

none

Package Sidebar

Install

npm i obra-icons-react

Weekly Downloads

3

Version

1.21.0

License

MIT

Unpacked Size

2.13 MB

Total Files

1965

Last publish

Collaborators

  • wolfr