Buttons
Buttons serve as calls to action and are used to invoke events.
- Neutral Buttons act as a standard call to action.
- Progressive Buttons represent an encouraged action.
- Positive Buttons represent a positive action.
- Negative Buttons represent a negative or cautioned action.
- Disabled Buttons are in a state in which a button is presented to a user but it is not actionable.
Attributes
attribute: | type: | required? | default: | description: |
---|---|---|---|---|
name | string | no | Name of the button element |
|
type | string | no |
button
|
Button type ('button', 'reset' or 'submit') |
icon | string | no | Name of icon to placed inside button |
|
state | string | no |
neutral
|
Button state, one of the following options: 'neutral' | 'progressive' | 'positive' | 'negative' |
float | boolean | no |
false
|
Make button floating (can not be use combined with 'transparent') |
transparent | boolean | no |
false
|
Make button transparent (can not be use combined with 'float') |
disabled | boolean | no |
false
|
Disable button |
busy | boolean | no |
false
|
Put button in 'busy' state |
track | boolean | no |
false
|
Enable click-tracking on this button |
selected | boolean | no |
false
|
Apply 'selected' state to this button |
Methods
buttonFocus()
Focus on the button