Display and status
StatusBadge
Generic status indicator badge. Provides pre-defined color schemes for common status domains (invoice, project, etc.) or an explicit semantic tone for custom status vocabulary.Public export
typescript
import { StatusBadge } from '@happyvertical/smrt-ui/display';- Import path
@happyvertical/smrt-ui/display- Props
- 7
- Props described
- 7 of 7
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.62.10
Props
Also accepts Omit<HTMLAttributes<HTMLSpanElement>, 'class' | 'children'>. The table lists the
component-specific contract.
NameTypeRequiredDescription
statusstringYesThe status value to displaytypeStatusTypeNoPre-defined color scheme typetoneStatusToneNoSemantic tone overriding the domain color scheme.size'sm' | 'md' | 'lg'NoBadge sizevariant'filled' | 'outline'NoVisual variantlabelstringNoOptional custom label (defaults to status value)case'capitalize' | 'as-is'No`'capitalize'` (default) title-cases the label via CSS; `'as-is'` leaves it untouched.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.