Data display
Status dot
function StatusDotDemo() { return ( <View className="flex-row items-center gap-4"> {(['success', 'warning', 'destructive', 'info', 'primary', 'muted'] as const).map((t) => ( <View key={t} className="items-center gap-1"> <StatusDot tone={t} /> <Text className="text-muted-foreground text-xs">{t}</Text> </View> ))} </View> );}API
<StatusDot tone size />Get it
Already in every copy of the native kit:
import { StatusDot } from '@/components/kit/status-dot';Details
- Exports
StatusDot- Packages
- class-variance-authority@^0.7.1
- Installs with
- @halftone-native/lib-utils
- Also searched as
- indicator, online, presence
- Registry JSON
- /r/native/status-dot.json
<ul className="flex flex-col gap-2 text-sm"> <li className="flex items-center gap-2"> <StatusDot tone="success" /> Online </li> <li className="flex items-center gap-2"> <StatusDot tone="warning" /> Pending review </li> <li className="flex items-center gap-2"> <StatusDot tone="destructive" /> Payment failed </li></ul>Usage
Always next to text: the dot adds colour, the word carries the meaning.
API
<StatusDot tone size />Get it
Already in every copy of the web kit:
import { StatusDot } from '@/components/kit/status-dot';Details
- Exports
StatusDot- Packages
- class-variance-authority@^0.7.1, cn@^0.5.2
- Also searched as
- indicator, presence
- Registry JSON
- /r/web/status-dot.json
Agents: the whole registry is at /llms.txt.