ToggleButton
FreeButton that keeps an on/off state and exposes it with aria-pressed.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
ChildContent | RenderFragment | Content rendered inside the component. |
Class | string | Extra CSS classes added to the root element. |
Color | ButtonColor | Primary (default), Secondary, Info, Success, Warning or Danger. |
Disabled | bool | Disables interaction. |
Icon | IconName? | Icon to show (IconName). |
Pressed | bool | Whether the button is on. Use with @bind-Pressed. |
Size | Size | Small, Medium (default) or Large; Dialog also has ExtraLarge. |
Style | string | Inline style added to the root element. |
Events
| Event | Type | Description |
|---|---|---|
PressedChanged | EventCallback<bool> | Raised when the button is toggled. |
Package
ToggleButton is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3