Skip to main content

Examples

Default

Custom Content

Max Value

Multiple Variants

Zero Value

Props

Count

V2 Notification Count — a small badge for unread activity on nav items, icons, buttons, or chips. Truncates values above max (e.g. "99+"). Renders nothing when the value is 0 and no children are provided.
boolean
default:"false"
Merge props onto a child element instead of rendering a <span>.
number
default:"99"
Maximum value before showing overflow (e.g. "99+").
boolean
default:"true"
When false, renders an 8px unread dot instead of a numeric amount (Figma Show Amount=False).
"24" | "32" | "16"
default:"32"
Size of the count badge.
number
default:"0"
Numeric value to display. Renders nothing when 0 and no children are provided.
"alert" | "info" | "success" | "warning" | "default" | "brand" | "pink" | "contrast"
default:"default"
Colour variant of the count badge. Figma V2 types: default | brand | contrast.

Exported types

Also exported from @fanvue/ui: CountProps, CountSize, CountVariant.
Setup: Installation · Theming