UIButton
Create a simple button, or a button with a context menu button component.
Since: 7.0.0 (6.0.0)
Name | Type | Default | Description |
label |
| Required - The text of the label | |
enabled |
|
| (Deprecated) Use |
disabled |
|
| To disabled button |
selected |
|
| Selected state or not |
icon |
| Icon name from style-guide. Example | |
type |
|
| Type of button look. See Available types for variations |
size |
|
| Size of button. Variants: large|normal|small |
width |
| Width of button. Variants: block|full | |
onClick |
| Callback for when the button is clicked |
Example
Example
type
Available types
The UIButton.props.type
has following variations:
Type dark
is used on buttons on dark background
Name |
default |
secondary |
primary |
draft |
alert |
pending |
warning |
done |
schedule |
brand |
alert outlined |
dark default |
dark primary |
dark outlined |
dark negative primary |
dark secondary |
text default |
text primary |
text dark default |
text dark black |
Last updated