Badge renders a short string in a rounded status label.
Usage
Props
Badge also accepts React Native ViewProps.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Label compact statuses with semantic visual tones
Badge renders a short string in a rounded status label.
import { Badge, View } from '@amisi-mobile-starter/ui';
export const StatusBadges = () => (
<View className="flex-row gap-2">
<Badge>Draft</Badge>
<Badge variant="success">Active</Badge>
<Badge variant="error">Failed</Badge>
</View>
);
| Prop | Type | Default | Description |
|---|---|---|---|
children | string | Required | Badge label. |
variant | 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'neutral' | Semantic tone. |
Badge also accepts React Native ViewProps.Was this page helpful?