docs/components/display/StatusDot

StatusDot

Colored status indicator dot.

import { StatusDot } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

Success

<StatusDot status="success" />

Warning

<StatusDot status="warning" />

#Props

PropTypeDefaultDescription
status'default' | 'success' | 'warning' | 'danger' | 'info''default'Status variant controlling color.
size'sm' | 'md' | 'lg''md'Size of the dot.
pulsebooleanfalseEnable pulse animation (for "active/running" state).
labelstringOptional label text shown next to dot.
'aria-label'stringAccessible label for screen readers.
classstringAdditional CSS class for root element.
styleJSX.CSSPropertiesInline styles for root element.
unstyledbooleanfalseRemove all default styles, only apply classNames.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-error
  • --sk-font-size-sm
  • --sk-info
  • --sk-space-sm
  • --sk-status-dot-danger-bg
  • --sk-status-dot-default-bg
  • --sk-status-dot-gap
  • --sk-status-dot-info-bg
  • --sk-status-dot-label-color
  • --sk-status-dot-label-font-size
  • --sk-status-dot-lg-size
  • --sk-status-dot-md-size
  • --sk-status-dot-sm-size
  • --sk-status-dot-success-bg
  • --sk-status-dot-warning-bg
  • --sk-success
  • --sk-text-muted
  • --sk-text-secondary
  • --sk-warning