Tag
Compact uppercase mono label. 4 variants. Optional dismiss button when onClose is provided.
Variants
DefaultAccentWarningFault
Dismissible
RemovableActive filter
Add to your project
One command adds this component to your project.
1
Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.
npx shadcn@latest add @aicanvas/andromeda-tagProps
Every prop this component accepts. Any other prop is forwarded to the underlying element.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default'|'accent'|'warning'|'fault' | 'default' | One of: default, accent, warning, fault. |
| children | React.ReactNode | - | Content rendered inside the component. |
| onClose | () => void | - | When provided, renders a close button. |
| className | string | - | Additional CSS classes applied to the root element. |
| style | React.CSSProperties | - | Inline styles applied to the root element. |

