Skip to content

Button Group

A Button Group is a set of related buttons displayed together in a horizontal or vertical arrangement, visually connected to indicate shared context.

Use Button Groups to group similar actions, present mutually exclusive choices, or align secondary actions with a primary action, ideal for toolbars, segmented controls, or grouped form actions.

Common alternative names:
Segmented Control, Action Group, Toolbar Buttons


A simple button group with text-only options.


A button group with icons alongside text labels.


PropertyTypeDescription
optionsList<ButtonGroupOption>The list of options to display in the button group.
onOptionSelectedFunction(int)Callback function when an option is selected. Receives the index of the selected option.
textStyleTextStyle?Custom text style for the button labels. Defaults to semiBold14 with accent color.
radiusdoubleThe border radius of the button group’s outer corners. Defaults to 100.
backgroundColorColor?Background color of the buttons. If not provided, uses default background.
PropertyTypeDescription
labelStringThe text to be displayed for this option.
iconWidget?An optional icon widget to display before the label.