1.0.0-16 • Published 6 years ago

@react-spectre/button v1.0.0-16

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

@react-spectre/button

React components for Spectre.css's buttons.

Installation

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

Usage

Buttons

There is 1 single component used for buttons: Button.

import { Button } from '@react-spectre/button'

Buttons can have 3 different base styles: default, primary and link. The two latter can be specifed using props with the same name:

<Button>Default</Button>
<Button primary>Primary</Button>
<Button link>Link</Button>

Colors

Buttons can be colored using: success or error props:

<Button success>Success</Button>
<Button error>Error</Button>

Sizes

Buttons can have two sizes using: small or large props:

<Button small>Small</Button>
<Button large>Large</Button>

Buttons can have fixed sizes using: action or circle props:

<Button action>Action</Button>
<Button circle>Circle</Button>

States

Buttons can have 3 different states using: active, disabled or loading:

<Button active>Active</Button>
<Button disabled>Disabled</Button>
<Button loading>Loading</Button>

Groups

Two or more buttons can be group when nested inside a Group or Button.Group:

<Button.Group>
  <Button>First</Button>
  <Button>Second</Button>
  <Button>Third</Button>
</Button.Group>

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

1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago