1.7 KiB
1.7 KiB
Buttons: Button
Usage
import { Button } from 'asc-web-components';
Description
Button is used for a action on a page.
Usage
<Button size='base' isDisabled={false} onClick={() => alert('Button clicked')} label="OK" />
Properties
Props | Type | Required | Values | Default | Description |
---|---|---|---|---|---|
label |
string |
- | - | - | Button text |
primary |
bool |
- | - | - | Tells when the button should be primary |
size |
oneOf |
- | base , middle , big |
base |
Size of button |
scale |
bool |
- | - | false | Scale width of button to 100% |
isDisabled |
bool |
- | - | - | Tells when the button should present a disabled state |
isLoading |
bool |
- | - | - | Tells when the button should show loader icon |
onClick |
func |
- | - | - | What the button will trigger when clicked |