A small availability or activity indicator.
import { StatusDot } from '@vrum/ui';
<StatusDot
status={"online"}
size={"md"}
pulse={false}
label={"Available"}
/>Copy code| Prop | Type | Default | Description |
|---|---|---|---|
status | "error" | "online" | "offline" | "busy" | "away" | "offline" | Current activity or availability state. |
size | "sm" | "md" | "sm" | Size of the component. |
label | string | none | Visible or accessible label. |
pulse | boolean | false | pulse configuration. |
color | string | none | color configuration. |
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | Defines a string value that labels the current element. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLSpanElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLSpanElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLSpanElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLSpanElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLSpanElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLSpanElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLSpanElement> | none | on select configuration. |