A component for triggering a user action. e.g: a submit button in a form
import { Button } from 'your-library-name';
<Button onClick={() => 'Do something'}>I am a button</Button>
Name | Type | Description |
---|---|---|
children |
node |
e.g: Add a label or an icon |
Name | Type | Default | Description |
---|---|---|---|
onClick |
function |
() => {} |
|
disabled |
boolean |
false |
|
type |
string |
submit |
|
color |
string |
button |
Either an Hex or a name |
dataTestId |
string |
button |
specify the action |