Button
Buttons enable users to take actions with a single tap. They're commonly used in forms, dialog panels, and specialized for tasks like navigation or repeated actions.
Usage
Basic
Primary & Secondary
Variant
The Button offers three style variants: Fill (default), Outline, and Text.
Icon
BitButton has an icon slot that, if specified, renders an icon that can be set at the start (default) or revered positioned at the end of component.
Loading
Demonstrate the dynamic loading state of buttons using the "IsLoading" property. Customize the loading label to provide users with feedback on ongoing processes.
AutoLoading:
Loading Label
Explore customizing the loading label and its different positions, including start, end, bottom, and top.
Href
Use BitButton as a hyperlink to external URLs, opening either in a new tab or the same tab.
Rel
Use BitButton as a hyperlink to external URLs, with a rel attribute.
Button Type
BitButton supports three different types, 'Submit' for sending form data, 'Reset' to clear form inputs, and 'Button' to provide flexibility for different interaction purposes.
Templates
Here are some examples of customizing the button content.
Utilize the "LoadingTemplate" feature to design personalized loading indicators and messages, providing a unique visual experience during loading states.
Events
Managing button click event (OnClick).
Size
Varying sizes for buttons tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
Small:
Medium:
Large:
FullWidth
Setting the FullWidth makes the button occupy 100% of its container's width.
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:
RTL
Use BitButton in right-to-left (RTL).
API
BitButton parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitVariant enum
Name |
Value |
Description |
---|---|---|
BitColor enum
Name |
Value |
Description |
---|---|---|
BitSize enum
Name |
Value |
Description |
---|---|---|
BitLabelPosition enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page