primitives/@mihcm/ui·v0.21.0·stable
Tag
Label chip with optional remove action. Like Badge but interactive — can be removed.
Props
The full prop API for Tag. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
variant | 'default' | 'primary' | 'accent' | 'destructive' | 'success' | 'warning' | 'default' | Color variant. | 0.5.0 |
size | 'sm' | 'md' | 'lg' | 'md' | Size scale. | 0.5.0 |
onRemove | () => void | — | When provided, renders a remove (x) button. | 0.5.0 |
removable | boolean | false | Convenience alias — renders the remove button. | 0.5.0 |
className | string | — | Additional Tailwind classes. | 0.5.0 |
Import
import { Tag } from '@mihcm/ui/Tag';