Run the following commands to add UI library to your project:
npm i reactjs-button-component
import { Button } from 'reactjs-button-component';
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 |
You may be seeing Design.