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 | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this Badge. |
RenderFragment | null |
Color |
Specifies the contextual Color applied to the badge's background and text. |
Color | Color.Default |
Intent |
Specifies the contextual intent applied to the badge's background and text. |
Intent | null |
Link |
Converts the badge into a clickable link, adding hover and focus interaction states. |
string | |
Pill |
Renders the badge with fully rounded corners, giving it a pill-shaped appearance. |
bool | false |
Subtle |
Enables a softer, subtle version of the current Color, providing a lighter visual style. |
bool | false |
Events
| Event | Description | Type |
|---|---|---|
CloseClicked |
Occurs on close button click. |
EventCallback |