1.0.0-16 • Published 6 years ago

@react-spectre/icon v1.0.0-16

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@react-spectre/icon

React components for Spectre.css's icons.

Installation

yarn add @react-spectre/icon
npm install @react-spectre/icon --save

Usage

Icons

There is 1 single component used for icons: Icon.

import { Icon } from '@react-spectre/icon'

Icon set

The Icon component only have one require property: name. The name should be one from the Spectre.css icon set. For example, if we want to use the icon-forward we use the name after the icon- as shown:

<Icon name="forward" />

Icon Sizes

The Icon component can have 3 different sizes using the size prop:

<Icon name="mail" size="2x" /> // 32px
<Icon name="mail" size="3x" /> // 48px
<Icon name="mail" size="4x" /> // 64px

Made with :heart: by Rubens Mariuzzo.

MIT License

1.0.0-16

6 years ago

1.0.0-15

6 years ago

1.0.0-14

6 years ago

1.0.0-13

6 years ago

1.0.0-12

6 years ago

1.0.0-11

6 years ago

1.0.0-10

6 years ago

1.0.0-9

6 years ago

1.0.0-8

6 years ago

1.0.0-7

6 years ago

1.0.0-6

6 years ago

1.0.0-5

6 years ago