Skip to content

Tag

Tags are compact labels for categorization, filtering, or attribute display. Use for metadata, categories, or removable selections.

HexagramTrigramActive

DefaultGoldSuccess
<Tag>Default</Tag>
<Tag color="gold">Gold</Tag>
<Tag color="success">Success</Tag>

SmallMediumLarge
<Tag size="sm">Small</Tag>
<Tag size="md">Medium</Tag>
<Tag size="lg">Large</Tag>

FilledOutlinedSubtle
<Tag variant="filled" color="gold">Filled</Tag>
<Tag variant="outlined" color="gold">Outlined</Tag>
<Tag variant="subtle" color="gold">Subtle</Tag>

DefaultGoldSuccessWarningErrorInfo
<Tag color="default">Default</Tag>
<Tag color="gold">Gold</Tag>
<Tag color="success">Success</Tag>
<Tag color="warning">Warning</Tag>
<Tag color="error">Error</Tag>
<Tag color="info">Info</Tag>

Heaven ×

Earth ×

Water ×

<Tag color="gold" onRemove={() => handleRemove('heaven')}>Heaven</Tag>
<Tag color="gold" onRemove={() => handleRemove('earth')}>Earth</Tag>
<Tag color="gold" onRemove={() => handleRemove('water')}>Water</Tag>

ActiveInactiveInactive
const [selected, setSelected] = useState('active');
<Tag
onPress={() => setSelected('active')}
selected={selected === 'active'}
>
Active
</Tag>

Yin-Yang

Complete

<Tag color="gold" leftIcon={<YinYangIcon />}>Yin-Yang</Tag>
<Tag color="success" leftIcon={<CheckIcon />}>Complete</Tag>

HexagramTrigramReadingOracleDivination
<TagGroup>
<Tag color="gold">Hexagram</Tag>
<Tag>Trigram</Tag>
<Tag>Reading</Tag>
<Tag>Oracle</Tag>
<Tag>Divination</Tag>
</TagGroup>

PropTypeDefaultDescription
childrenstringRequiredTag content
size'sm' | 'md' | 'lg''md'Tag size
variant'filled' | 'outlined' | 'subtle''subtle'Tag variant
color'default' | 'gold' | 'success' | 'warning' | 'error' | 'info''default'Tag color
leftIconReactNode-Left icon
onRemove() => void-Remove handler
onPress() => void-Press handler
selectedbooleanfalseSelected state
styleViewStyle-Custom styles
PropTypeDefaultDescription
childrenReactNodeRequiredChild tags
wrapbooleantrueWrap tags
gapnumber8Gap between tags
styleViewStyle-Custom styles