Skip to Content

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

ПропТипПо умолчаниюОписание
startReactNode——
appearance"neutral" | "rose" | "grey" | "red" | "orange" | "yellow" | "violet" | "teal" | "green" | "azure" | "blue"neutral—
variant"filled" | "outlined"outlined—
size"small" | "base"base—
hrefstring——
targetstring——
relstring——
onClickMouseEventHandler<HTMLButtonElement | HTMLAnchorElement>—Enables a native main action; href renders a link instead.
disabledboolean—
readOnlyboolean—
closableboolean—
closeLabelstring—Use an explicit name for complex children. Plain text/number is included automatically.
onCloseMouseEventHandler<HTMLButtonElement>—Signals removal. The caller owns unmounting and focus restoration.
Last updated on