Badge API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
Badge5 props0 callbacks0 methods
Props5
| Name | Type | Description |
|---|---|---|
variantOptional | "solid" | "neutral" | "accent" | undefined | Neutral counters or accent emphasis. Defaults to the existing solid badge. |
shapeOptional | "rounded" | "pill" | undefined | Controls the badge corner shape. |
childrenOptional |
| Content rendered inside the component. Supply nodes from the framework adapter you are using. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
labelOptional | string | undefined | Label content or accessible name for the component, as rendered by this control. |
Events and callbacks0
No component-specific events or callbacks.
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.