Button
Example
Button example
Show Code
Props
Name | Description | Type | Default | Required |
---|
htmlId | Unique HTML ID. Used for tying label to HTML input. Handy hook for automated testing. | string | | X |
name | Input name. Recommend setting this to match object's property so a single change handler can be used. | string | | X |
type | Input type | enum | 'submit' | |
onClick | Function to call onClick | func | | X |
children | Child component to display next to the input | node | 'Submit' | |
size | Size classname to use for different sizes | string | '' | |
classname | Any additional classnames to add to it | string | '' | |