Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
A badge is a visual decoration for UI elements. Different badges can display numerical values, status, or text.
Name | Description | Default | Control |
---|---|---|---|
icon | ShorthandProps<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | - | |
ref | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | - | - |
as | "div" | - | |
appearance | A Badge can be filled, outline, ghost, inverted "filled""ghost""outline""tint" | - | |
color | A Badge can be one of preset colors "brand""danger""important""informative""severe""subtle""success""warning" | - | |
iconPosition | A Badge can position the icon before or after the content. "before""after" | - | |
shape | A Badge can be square, circular or rounded. "circular""square""rounded" | - | |
size | A Badge can be on of several preset sizes. "small""medium""large""extra-large""tiny""extra-small" | - |
A badge can have a ghost
, filled
, outline
, or tint
appearance. The default is filled
.
A badge supports tiny
, extra-small
, small
, medium
, large
, and extra-large
sizes. The default is medium
.
A badge can have square
, rounded
or circular
shape. The default is circular
.
A badge can have different colors. The available colors are brand
, danger
, important
, informative
, severe
, severe
, success
or warning
. The default is brand
.