Tag
Compact category label. Action/link and removal are sibling native controls. The caller owns removal and focus restoration; static tags are not tab stops.
Использование
Tag
Варианты
TagTagTagTagTagTagTagTag
Стиль
TagTag
Размеры
TagTag
Состояния
TagTagTag
API
| Проп | Тип | По умолчанию | Описание |
|---|---|---|---|
start | ReactNode | — | — |
appearance | "neutral" | "rose" | "grey" | "red" | "orange" | "yellow" | "violet" | "teal" | "green" | "azure" | "blue" | neutral | — |
variant | "filled" | "outlined" | outlined | — |
size | "small" | "base" | base | — |
href | string | — | — |
target | string | — | — |
rel | string | — | — |
onClick | MouseEventHandler<HTMLButtonElement | HTMLAnchorElement> | — | Enables a native main action; href renders a link instead. |
disabled | boolean | | — |
readOnly | boolean | | — |
closable | boolean | | — |
closeLabel | string | — | Use an explicit name for complex children. Plain text/number is included automatically. |
onClose | MouseEventHandler<HTMLButtonElement> | — | Signals removal. The caller owns unmounting and focus restoration. |
Last updated on