0.4.0 • Published 6 years ago
@roo-ui/button v0.4.0
Button
Installation
$ yarn add @roo-ui/button
Example
import Button, { OutlineButton } from '@roo-ui/button';
export default (
<Fragment>
<Button>Hello world</Button>
<OutlineButton>Hello world</OutlineButton>
</Fragment>
);
Properties
Name | Description | Type | Default | Required? |
---|---|---|---|---|
children | button content | node | - | ✔︎ |
primary | use the primary color | bool | false | - |
rounded | use a rounded border | bool | false | - |
disabled | disable the button | bool | false | - |
Customization
This component can be customized with styled-system by passing props for space, color, or box shadow.