Fundação
Componentes
- Componentes
- Accordion
- ActivityGraph
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- AvatarGroup
- Badge
- Box
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Connector
- Container
- Context Menu
- Dialog
- Drawer
- DropdownMenu
- Empty
- EnvEditor
- Fade In
- Field
- Fps
- Hover Card
- Highlighter
- Input
- InputGroup
- Input OTP
- Item
- JSONViewer
- Kbd
- Label
- Marquee
- Menubar
- Native Select
- Navigation Menu
- NumberInput
- Pagination
- Popover
- Preview Card
- Progress
- ProgressiveBlur
- Radio Group
- Resizable
- Retro Grid
- Scan Line
- ScrollArea
- Scrubber
- SectionLabel
- Select
- Separator
- Sheet
- Signature
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stagger Group
- StatusDot
- SystemBanner
- Switch
- Table
- Tabs
- TagInput
- Textarea
- ThemeToogle
- Toggle
- Toggle Group
- Tooltip
- Typing Effect
Em @zexon/ui/components/status-dot. Use status para a cor, size (sm ≈ 6px, md ≈ 8px por defeito, lg ≈ 10px), label para texto ao lado e pulse só faz sentido com status="online" (animação sujeita a motion-reduce). Com avatares, posicione com className="absolute right-0 bottom-0 z-10" e withInsetRing para o anel sobre o fundo.
Só o indicador
Estados com etiqueta
OnlineOcupadoAusenteOffline
Com avatar
Indicador no canto do avatar
JDOnlineMRAusenteABOffline
Acessibilidade
Sem label, o estado é lido via texto só para leitores de tela (sr-only). Com label, o texto visível identifica o estado.
Anterior:
Próximo: