CompoundButton
CompoundButton is a button containing a secondary text describing the main action of the button.
Usage
Basic
The CompoundButton offers three style options: Primary (default), Standard, and Text.
Primary button
Primary buttons are attention-grabbing, featuring a filled appearance. They're designed for essential actions at the core of your application.
Standard button
Standard buttons offer a moderate level of emphasis, suitable for important actions that aren't central to the application. They serve as a middle ground between Text buttons and the more prominent Primary buttons, providing flexibility in emphasis.
Text button
Text buttons are best suited for understated actions, serving as a less prominent choice in various interface elements.
Icon
BitCompoundButton has an icon slot that, if specified, renders an icon that can be set at the start or end of component using IconPosition.
Events
Managing button click event (OnClick).
Button Type
BitCompoundButton supports three different types, 'Submit' for sending form data, 'Reset' to clear form inputs, and 'Button' to provide flexibility for different interaction purposes.
Template
Here are some examples of customizing the button content.
Color
Offering a range of specialized color variants, providing visual cues for specific actions or states within your application.
Size
Varying sizes for buttons tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
ClassStyles
Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
Visibility
You can control the display of buttons with three settings, 'Visible' for full display, 'Hidden' for concealing buttons without altering layout, and 'Collapsed' to remove the button and its space.
RTL
Implementation
BitCompoundButton parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitCompoundButtonClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|