Badge

Generates a badge component, typically used for drawing attention to elements like notification counts.

Read more Read less

Usage

<.badge>8</.badge>
8 8 8 8 8 8 8
Attribute Type Documentation Default Value
class :any Any additional classes to be added. Variations of the component should be expressed via modifier attributes, and it is preferable to use styles on the parent container to arrange components on the page, but if you have to, you can use this attribute to pass additional utility classes to the component. The value can be a string or a list of strings. []
rest :global Any additional HTML attributes.
size :string "normal"
variant :string
Required inner_block * :slot
8