About
Badge highlights a short status, count, or category label, from Meta's Astryx design system. Ships semantic variants (neutral, info, success, warning, error) plus a full color palette (blue, purple, pink, teal, orange, cyan, green, red, yellow) for tags and counts.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Astryx Badge to your project and fits it to your theme.
Code
How Astryx Badge is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import Badge from '@/components/ui/astryx-badge';
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {Stack} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
export default function BadgeStatusLabels() {
return (
<Theme theme={neutralTheme}>
<div
style={{
minHeight: '100dvh',
display: 'grid',
placeItems: 'center',
padding: 24,
}}>
<Stack direction="vertical" gap={6}>
<Stack direction="vertical" gap={2}>
<Text type="supporting" color="secondary">
System status
</Text>
<Stack direction="horizontal" gap={2} vAlign="center">
<Badge variant="success" label="Active" />
<Badge variant="warning" label="Pending" />
<Badge variant="error" label="Failed" />
</Stack>
</Stack>
<Stack direction="vertical" gap={2}>
<Text type="supporting" color="secondary">
Workflow
</Text>
<Stack direction="horizontal" gap={2} vAlign="center">
<Badge variant="neutral" label="Draft" />
<Badge variant="info" label="In Review" />
</Stack>
</Stack>
</Stack>
</div>
</Theme>
);
}






