Toggle
Toggle
A two-state button that can be either on or off.
Basic
A simple toggle button that tracks its pressed state.
Pressed: False
Variants
Default and outline visual styles.
Sizes
Small, default, and large size options.
Toggle Group - Single
Only one item can be active at a time.
Selected: left
Toggle Group - Multiple
Multiple items can be active simultaneously.
Selected:
API Reference
Component parameters and their types.
| Prop | Type | Default | Description |
|---|---|---|---|
| Pressed | @bind-Pressed / bool | false | Whether the toggle is pressed. |
| Variant | ToggleVariant | Default | Default or Outline visual style. |
| Size | ToggleSize | Default | Small, Default, or Large. |
| Disabled | bool | false | Disables the toggle. |