Label
Labels are a visual pattern used to categorize information providing quick and easy recognition.
install | yarn add @clayui/label |
---|---|
version | 3.111.0 |
Stable3.111.0View in LexiconCHANGELOG
Property | Description |
---|---|
dismissible boolean | Flag to indicate if label-dismissible class should be applied. |
displayType | 'secondary'
| 'info'
| 'warning'
| 'danger'
| 'success'
| 'unstyled' | Determines the style of the label. |
large boolean | Flag to indicate if the label should be of the large variant. |
closeButtonProps React.ButtonHTMLAttributes<HTMLButtonElement> & {
ref?: (instance: HTMLButtonElement | null) => void;
} | HTML properties that are applied to the 'x' button. |
innerElementProps React.ComponentProps<typeof ClayLabelItemExpand> | Pros to add to the inner label item The default value is {} |
spritemap string | Path to the location of the spritemap resource used for Icon. |
withClose boolean | Flag to indicate if component should include the close button The default value is true |