UI Components
Tag
Compact label component for categorization, filtering, and status indicators.
Quick Preview
DefaultPrimarySuccessWarningErrorInfo
Installation
// Copy fromsrc/components/ui/Tag.tsx
Examples
Sizes
SmallMediumLarge
With Dot
ActivePendingFailed
Removable
React
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Tag content |
variant | 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'default' | Color variant |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the tag |
onRemove | () => void | - | Callback when remove โ is clicked |
dot | boolean | - | Show a colored status dot |
className | string | - | Additional CSS classes |