Badge

Renders a number in a badge.

Read more Read less

Example

<.badge count={5} />

Giving it a count of zero will cause it not to render.

<.badge count={0} />

A count of > 1000 will be truncated to 1k.

0
42
Attribute Type Documentation Default Value
type :string

The context-specific color of the chip.

Read more Read less
"neutral"

important is rendered in the brand color.

Required count * :integer
size :string "md"
rest :global