0.1.8 • Published 2 years ago
reactjs-button-component v0.1.8
Installation
Run the following commands to add UI library to your project:
npm i reactjs-button-componentButton Component
Import
import { Button } from 'reactjs-button-component';Props
| Name | Type | Default | Description |
|---|---|---|---|
| variant | 'contained' | 'text' | 'outline' | string | 'contained' | The variant to use |
| text | string | 'text' | The text value of button component |
| size | 'small' | 'medium' | 'large' | string | 'medium' | The size of component |
| disabled | true | false | bool | false | If true the component is disabled |
| backgroundColor | string | The background-color of component | |
| textColor | string | The color of text value inside component | |
| startIcon | elementType | false | The component used for the root node |
| endIcon | elementType | false | The component used for the root node |
Design
You may be seeing Design.