@front10/landing-page-book
Version:
A react library for landing page
21 lines (19 loc) • 1.16 kB
Markdown
# Button
[](https://github.com/RichardLitt/standard-readme)
## Properties
| </br>Name | </br>Type | </br>Summary | </br>Default |
| ---- | ---- | ---- | ---- |
| active | `bool` | Define if button is active | `false` |
| ariaLabel | `string` | Aria label of the button | `''` |
| children | `union` | Button styles | `null` |
| className | `string` | Class to apply to button | `''` |
| color | `string` | Color to apply to button | `'light'` |
| disabled | `bool` | Disable or enable button | `false` |
| loading | `bool` | Show loading mode | `false` |
| loadingClass | `string` | Class to show loading indicator | `'fa fa-circle-o-notch fa-spin'` |
| onClick | `func` | Called when button is clicked | `() => {}` |
| outline | `bool` | Define if button is only with border | `false` |
| size | `string` | Button size. Can be <code>'lg'</code>, <code>'sm'</code> | `''` |
| style | `objectOf` | Css style applied to the component | `{}` |
| tooltip | `string` | Button tooltip | `''` |
| type | `string` | Type of the button | `'button'` |