Button Group
Introduction
The Button Group is a basic component that contains one or more buttons.
Configurations
Category |
Configuration |
Example |
Description |
|
Content |
Tuple item |
Each |
||
Edit node |
Edit node |
Edit the properties, configurations, and styles of each Button component. |
||
Label |
Used as a node identifier and description. |
|||
Fixed width |
Specifies whether to enable a fixed width. |
|||
Width |
Sets the width. |
|||
Hide |
Hides the component. For more information, see Common properties. |
|||
Type |
Sets the node type. Options: Button, Text, Link, Icon, Profile Picture, Tag, and Status. |
|||
Configuration |
Button text |
The text displayed on the button. |
||
Button type |
Sets the button type. Options: Primary, Default, Dashed, Text, and Link. |
|||
Enable badge |
Specifies whether to display a badge. |
|||
Badge configuration |
After you enable the badge, you can configure its properties. |
|||
Tooltip |
Specifies whether to display a tooltip. |
|||
Tooltip configuration |
After you enable the tooltip, you can configure its properties. |
|||
Interaction type |
Sets the interaction type for the button. When the interaction type is set to Submit or Reset, it automatically triggers a form submission or reset. |
|||
Loading |
Displays a loading animation. |
|||
Disable |
Disables the component. A disabled component appears grayed out to indicate that it is unavailable. |
|||
Ghost style |
Specifies whether to display the ghost style. |
|||
Danger button |
Displays a danger mark to emphasize a high-risk operation. This is typically used for buttons that involve data loss, account deletion, or other irreversible actions. |
|||
Button shape |
Sets the button shape. Options: Default, Circle, and Rounded. |
|||
Border radius |
For more information, see Common properties. |
|||
Button content font size |
The font size of the button content. |
|||
Button content line height |
The line height of the button content. |
|||
Style |
Height |
The height of the button group. For more information, see Common properties. |
||
Margin |
The margin between this component and other components. For more information, see Common properties. |
|||
Font size |
The font size of the text content. |
|||
Allow line break |
Specifies whether the text is displayed on a single line. |
|||
Horizontal layout |
The horizontal alignment of the component group. Options: Align left, Align right, Center, Justify, and Distribute. |
|||
Vertical layout |
The vertical alignment of the component group. Options: Align top, Center, and Align bottom. |
|||
Spacing |
The spacing between buttons in the button group. |
|||
Interaction |
Hide |
Hides the component. For more information, see Common properties. |
||
Keep layout when hidden |
Specifies whether to keep the layout when the component is hidden. |
Event callbacks
Event name |
Description |
The callback that is triggered when the component is clicked. |