Obra Icons for React.
A simple, consistent set of icons, perfect for user interfaces. Obra Icons consists of more than 950 icons.
npm install obra-icons-react
import { IconAdd } from 'obra-icons-react';
Use the size
, color
and strokeWidth
props to customize the icon.
<IconAdd size={24} color="red" strokeWidth={1} />
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
For a full reference, see the list at Obra Icons website.