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 adding -secondary
to the type you down size it automatically. Good use with a "Cancel"-button
Type -darkMode
should be added if button is on dark background
Name |
default |
primary |
draft |
alert |
pending |
warning |
done |
schedule |
brand |
default-outlined |
default-outlined-transparent |
primary-inverted |
draft-inverted |
alert-inverted |
pending-inverted |
warning-inverted |
done-inverted |
schedule-inverted |
brand-inverted |
black-inverted |
Last updated