Bedform UIMessages
Tag
Display a single-line label.
Tag
New
*
string
*
boolean
*
Usage
import { Tag } from "@bedform/ui/tag";
export function Status() {
return <Tag variant="primary">New</Tag>;
}Variants
<Tag>Neutral</Tag>
<Tag variant="secondary">Secondary</Tag>
<Tag variant="primary">Primary</Tag>
<Tag variant="informative">Info</Tag>
<Tag variant="notice">Notice</Tag>
<Tag variant="warning">Warning</Tag>
<Tag variant="realms-informative">Realms</Tag>Add outlined to add a visible border to the label.
<Tag outlined>Outlined</Tag>API
Tag renders a span, accepts every span attribute, and forwards its ref to it.
| Prop | Type | Default |
|---|---|---|
variant | "neutral" | "secondary" | "primary" | "informative" | "notice" | "warning" | "realms-informative" | "neutral" |
outlined | boolean | false |
CSS variables
| Variable | Purpose |
|---|---|
--ore-tag-unit | Base size unit |
--ore-tag-background | Label background |
--ore-tag-foreground | Label text color |
--ore-tag-border | Outline color |