Buttons
Buttons communicate an action to happen on user interaction.
install | yarn add @clayui/button |
---|---|
version | 3.116.0 |
Stable3.116.0View in LexiconCHANGELOG
Button
Property | Description |
---|---|
alert boolean | Flag to indicate if button is used within an alert component. |
borderless boolean | Flag to indicate if the button should be borderless. |
block boolean | Renders the button as a block element. |
dark boolean | Flag to indicate if the button should use the clay-dark variant. |
displayType | null
| 'primary'
| 'secondary'
| 'link'
| 'success'
| 'warning'
| 'danger'
| 'info'
| 'beta'
| 'beta-dark'
| 'unstyled' | Determines the button variant to use.
The values beta and beta-dark are deprecated since v3.100.0 - use
translucent and dark instead.
The values null and unstyled are for internal use only.The default value is 'primary' |
monospaced boolean | Flag to indicate if button should be monospaced. |
outline boolean | Flag to indicate if the button should use the outline variant. |
rounded boolean | Flag to indicate if the button should be shaped like a pill. |
size 'xs' | 'regular' | 'sm' | Determines the size of a button. The default value is 'regular' |
small Deprecatedboolean | Indicates button should be a small variant.
@deprecated since v3.72.0 - use size instead. |
translucent boolean | Flag to indicate if the button should use the translucent variant. |
type
| The default value is 'button' |
Button.Group
Property | Description |
---|---|
spaced boolean | Flag to indicate the spacing between the buttons. |
vertical boolean | Flag to indicate if buttons are stacked vertically. |
role
| The default value is 'group' |
ButtonWithIcon
Property | Description |
---|---|
spritemap string | Path to the location of the spritemap resource. |
symbol string | The id of the icon in the spritemap. |
monospaced
| The default value is true |