Tag
StatusBadge minus the dot — fixed 32px height with an optional close button. All colors from tokens in @npolyhunter/ds/theme.css. The optional close button label follows the selected UI locale.
Playground
Live preview
Guild
Examples
All variants
successwarningdangerinfopendingfiltersuccesswarningdangerinfopendingfilterdisabled
Closable list (Tags molecule)
GuildLiveExpiring
Spec
// StatusBadge minus the dot: same border + status tokens,
// fixed 32px height (h-8), optional close button on the right.
<Tag variant="success" closable onClose={remove}>
Live
</Tag>Code
import { Tag } from "@npolyhunter/ui";
<Tag>Default</Tag>
<Tag variant="success">Live</Tag>
<Tag variant="filter" closable onClose={() => remove(id)}>
Guild
</Tag>
<Tag variant="warning" disabled>Disabled</Tag>Code
<Tag
variant="${variant}" // "success" | "warning" | "danger" | "info" | "pending" | "filter"
closable={closable} // renders a close button; fire onClose and remove it
disabled={disabled} // 45 pct opacity, pointer-events none, cannot close
>
${text}
</Tag>Used in
Includes use through shared UI components.
AppBack Office
