Tag
Compact inline label for status, category, and metadata chips.
Intents
Icon
Usage
import { Tag } from 'regen-ui'
export function NetworkTag() {
return (
<Tag dot intent="accent">
Tempo
</Tag>
)
}API Reference
Tag.Props
| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | Tag label. |
dot | boolean | false | Show a small leading dot when no icon is provided. |
icon | ReactNode | None | Optional leading icon. |
intent | 'info' | 'warning' | 'accent' | 'negative' | 'neutral' | 'positive' | 'neutral' | Tag color intent. |
Inherits HTMLAttributes<HTMLSpanElement>, except children. | |||
childrenType
ReactNodeDefaultNone
Tag label.dotType
booleanDefault
Show a small leading dot when no icon is provided.falseiconType
ReactNodeDefaultNone
Optional leading icon.intentType
'info' | 'warning' | 'accent' | 'negative' | 'neutral' | 'positive'Default
Tag color intent.'neutral'Inherits
HTMLAttributes<HTMLSpanElement>, except children.