UIButton
Create a simple button, or a button with a context menu button component.
Properties
Name | Type | Default | Description |
label |
| Required - The text of the label | |
enabled |
|
| Set to false to disable button |
icon |
| Font awesome class to use as an inline icon prefixed to the button text | |
type |
|
| Type of button look. See Available types for variations |
size |
| Size of button. Variants: large|small | |
contextIcon |
| Font Awesome class to use as a context icon | |
onClick |
| Callback for when the button is clicked | |
onContextClick |
| Optional callback for when context part is clicked |
Example
Example
Available types
The UIButton.props.type
has following variations:
By add -secondary
to the type you down size it automatically. Good use with a "Cancel"-button
Name |
default |
primary |
draft |
alert |
pending |
warning |
done |
schedule |
brand |
outline-default |
outline-primary |
outline-draft |
outline-alert |
outline-pending |
outline-warning |
outline-done |
outline-schedule |
outline-brand |
Last updated