Blazorise Badge API
Explore the Blazorise Badge API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Badge documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this Badge. | ||
Color | Color.Default | Color |
Specifies the contextual or explicit CSS color applied to the badge's background and text. | ||
Intent | null | Intent |
Specifies the contextual intent applied to the badge's background and text. | ||
Link | — | string |
Converts the badge into a clickable link, adding hover and focus interaction states. | ||
Pill | false | bool |
Renders the badge with fully rounded corners, giving it a pill-shaped appearance. | ||
Subtle | false | bool |
Enables a softer, subtle version of the current Color, providing a lighter visual style. | ||
Events
| Event | Type |
|---|---|
CloseClicked | EventCallback |
Occurs on close button click. | |