ToggleButton
ToggleButton is a type of button that stores and shows a status representing the toggle state of the component.
Usage
Basic
Variant
The BitToggleButton offers three variants: Fill (default), Outline, and Text.
Size
Varying sizes for BitToggleButton tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
Color
Offering a range of specialized color variants with Primary being the default, providing visual cues for specific actions or states within your application.
Style & Class
Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
Component's Style & Class:
Styles & Classes:
Binding
Explore default checked state, two-way binding, and handling change events for a customizable user experience.
DefaultIsChecked:
Two-way bound:
OnChange:
Templates
Here are some examples of customizing the BitToggleButton content.
Events
Managing BitToggleButton click event (OnClick).
RTL
Use BitToggleButton in right-to-left (RTL).
API
BitToggleButton parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitToggleButtonClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitColor enum
Name |
Value |
Description |
---|---|---|
BitSize enum
Name |
Value |
Description |
---|---|---|
BitVariant enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page