Stylish Segmented Button
A single mutually exclusive option inside StylishSingleChoiceSegmentedButtonRow, wrapping the Material 3 single-choice androidx.compose.material3.SegmentedButton.
The default shape renders the segment as a plain rectangle; for joined rows pass SegmentedButtonDefaults.itemShape(index = i, count = n) so the outer corners round and the inner corners notch.
Parameters
Whether this button is selected.
Called when the button is tapped.
Modifier applied to the button root.
When false, the button ignores pointer input and renders in its disabled colors. Defaults to true.
The shape of this button. Defaults to SegmentedButtonDefaults.baseShape; use SegmentedButtonDefaults.itemShape for multi-segment rows.
SegmentedButtonColors resolving the button colors per state. Defaults to SegmentedButtonDefaults.colors.
The BorderStroke around the button. Defaults to the M3 outline style: a SegmentedButtonDefaults.BorderWidth stroke colored by the active/inactive border color for the current selected and enabled state.
Internal spacing between the container and the content. Defaults to SegmentedButtonDefaults.ContentPadding.
Optional hoisted MutableInteractionSource for observing interactions. When null, one is remembered internally.
The icon slot, shown before the label. Defaults to the M3 check/blank icon for the selected state.
The button content, typically a Text.
See also
A single multi-select option inside StylishMultiChoiceSegmentedButtonRow, wrapping the Material 3 multi-choice androidx.compose.material3.SegmentedButton.
The default shape renders the segment as a plain rectangle; for joined rows pass SegmentedButtonDefaults.itemShape(index = i, count = n) so the outer corners round and the inner corners notch.
Parameters
Whether this button is currently checked.
Called with the new checked state when the button is tapped.
Modifier applied to the button root.
When false, the button ignores pointer input and renders in its disabled colors. Defaults to true.
The shape of this button. Defaults to SegmentedButtonDefaults.baseShape; use SegmentedButtonDefaults.itemShape for multi-segment rows.
SegmentedButtonColors resolving the button colors per state. Defaults to SegmentedButtonDefaults.colors.
The BorderStroke around the button. Defaults to the M3 outline style: a SegmentedButtonDefaults.BorderWidth stroke colored by the active/inactive border color for the current checked and enabled state.
Internal spacing between the container and the content. Defaults to SegmentedButtonDefaults.ContentPadding.
Optional hoisted MutableInteractionSource for observing interactions. When null, one is remembered internally.
The icon slot, shown before the label. Defaults to the M3 check/blank icon for the checked state.
The button content, typically a Text.