Status
@xui/statusA coloured dot with a label, for the state of a thing — online, degraded, failed.
Install
pnpm add @xui/status Add the barrel to a standalone component's imports:
import { XuiStatusImports } from '@xui/status';@Component({ imports: [XuiStatusImports], // …})Examples
Default
Loading preview…
<div class="inline-flex gap-2"> <xui-status presence="online" /> <xui-status presence="idle" /> <xui-status presence="dnd" /> <xui-status presence="offline" /></div>API
A presence dot — the badge that says whether someone is online.
Variants
presencesizemdInputs
classClassValueThe user-defined classes''presenceXuiStatusVariants['presence']Which state to show. Each one carries both its own colour and its own cut-out shape.this.config.presencesizeXuiStatusVariants['size']Diameter of the dot, from the shared control scale.this.config.size