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 |
---|---|---|---|
count | Value displayed by the Badge number | 0 | |
ref | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | - | - |
icon | ShorthandProps<{ as?: "span"; } & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<...>> & { ...; } & { ...; }> | - | |
as | "div" | - | |
size | A Badge can be on of several preset sizes. "small""medium""large""extra-large""tiny""extra-small" | - | |
iconPosition | A Badge can position the icon before or after the content. "before""after" | - | |
overflowCount | Max number to be displayed number | 99 | |
showZero | If the badge should be shown when count is 0 boolean | false | |
dot | If a dot should be displayed without the count boolean | false | |
shape | A Badge can be circular or rounded "circular""rounded" | "circular" | |
appearance | A Badge can be filled, ghost "filled""ghost" | "filled" | |
color | Semantic colors for a counter badge "brand""danger""important""informative" | "brand" |
A counter badge can have a ghost
or filled
appearance. The default is filled
.
A counter badge can have a rounded
or circular
shape. The default is circular
.
A counter badge supports tiny
, extra-small
, small
, medium
, large
, and extra-large
sizes. The default is medium
.
A counter badge can be different colors. The available colors are brand
, danger
, important
, informative
, severe
, severe
, success
or warning
. The default is brand
.