The <Tag> component is used to display a a category, a label, or a status.
sizemediumx-smallsmallmediumlargecolordefaultdefaultgreenredblueorangeoutlinefalsetrue to use the outline style.fillfalseoutline. Set to true to use the outline fill style.interactivefalsetrue to make the tag interactive (hover effect and pointer cursor).disabledfalsetrue to disable the tag.bgfg<Tag>Default</Tag>
<Tag color="accent">Accent</Tag>
<Tag color="green">Green</Tag>
<Tag color="red">Red</Tag>
<Tag color="blue">Blue</Tag>
<Tag color="orange">Orange</Tag> <Tag outline>Default</Tag>
<Tag outline color="accent">Accent</Tag>
<Tag outline color="green">Green</Tag>
<Tag outline color="red">Red</Tag>
<Tag outline color="blue">Blue</Tag>
<Tag outline color="orange">Orange</Tag> <Tag outline fill>Default</Tag>
<Tag outline fill color="accent">Accent</Tag>
<Tag outline fill color="green">Green</Tag>
<Tag outline fill color="red">Red</Tag>
<Tag outline fill color="blue">Blue</Tag>
<Tag outline fill color="orange">Orange</Tag> <Tag size="x-small">Extra Small</Tag>
<Tag size="small">Small</Tag>
<Tag size="medium">Medium</Tag>
<Tag size="large">Large</Tag> Start and end slots can be used to add icons or other elements to the tag.
<Tag>
<IconJournalText slot="start" size={12} />
Draft
</Tag> <Tag>
Loading<Loader size="small" slot="end" invert />
</Tag> Set the interactive property to true to add a hover effect and a pointer cursor.
<Tag interactive>Default</Tag>
<Tag interactive color="green">Green</Tag>
<Tag interactive color="red">Red</Tag>
<Tag interactive color="blue">Blue</Tag>
<Tag interactive color="orange">Orange</Tag>
<Tag interactive outline>Default</Tag>
<Tag interactive outline color="green">Green</Tag>
<Tag interactive outline color="red">Red</Tag>
<Tag interactive outline color="blue">Blue</Tag>
<Tag interactive outline color="orange">Orange</Tag> Set the disabled property to true to disable the tag.
<Tag disabled>Default</Tag>
<Tag disabled color="accent">Accent</Tag>
<Tag disabled color="green">Green</Tag>
<Tag disabled color="red">Red</Tag>
<Tag disabled color="blue">Blue</Tag>
<Tag disabled color="orange">Orange</Tag>
<Tag disabled outline>Default</Tag>
<Tag disabled outline color="green">Green</Tag>
<Tag disabled outline color="red">Red</Tag>
<Tag disabled outline color="blue">Blue</Tag>
<Tag disabled outline color="orange">Orange</Tag> You can use the bg and fg properties to set custom background and text colors.
<Tag
bg="var(--green-light)"
fg="var(--green)"
>Custom</Tag>