Props
| Name | Description |
|---|---|
bottom Type: booleanDefaultfalse | Anchors the indicator to the bottom edge of the wrapped element instead of the top. See example |
dot Type: booleanDefaultfalse | Renders a small contentless dot instead of a labelled bubble. Takes precedence over The precedence is not additive, and it was not in v2 either: a v2 call site that switched the dot on from a count never showed the number. Carry |
left Type: booleanDefaultfalse | Anchors the indicator to the left edge of the wrapped element instead of the right. See example |
max Type: number | Caps a numeric |
pt Type: PtMap<BbIndicatorPtPart, "default" | "destructive" | "warning" | "success" | "info"> | Passthrough, object form: the same keys as the |
pt:<part> Type: PtValue | Passthrough, attribute form: one attribute per part, |
size Type: keyof SizesDefault"md" | Preset size of the indicator. Match the element being decorated rather than the text inside the bubble. An off-scale value warns in development and falls back to |
text Type: string | number | Content shown inside the indicator bubble. A A count of |
variant Type: keyof IndicatorVariantRegistryDefault"default" | Visual variant. |
Slots
The listed properties are the ones exposed to the slot scope.
| Name | Description |
|---|---|
default Type: object | The element the indicator is anchored to. The indicator is inert, so anything interactive goes here rather than on the indicator: wrap a |