Docs
Indicator

Indicator

The Indicator component is a small, customizable UI element typically used to display counts or statuses.

1000

Usage

Example Code

1import Indicator from "inc-design-system/indicator";

Example Code

1<Indicator>Div with status</Indicator>

Props

Indicator

PropTypeDescriptionDefault
childrenReact.ReactNodeContent to display inside the badge. There should be at least one child.-
countnumberNumber that shows the count of notifications. Default is 0.0
dotbooleanBoolean value to determine whether to show a dot UI instead of the count. Default is false. Order of precedence: Processing > Dot > Countfalse
showZerobooleanBoolean value to determine whether to display the number 0. Default is false.false
overflowCountnumberThe maximum number before displaying '99+'. Default is 99.99
processingbooleanBoolean value to determine whether to show a processing icon (lucide icon clock4). Default is false.false
classNamestringStyling for the parent div.-
variant"default" | "success" | "error" | "warning" | "info"Variant of the badge determining its color.default