androidx.compose.material3
SplitButtonShapesSince 1.10
Class
No hand-written docs yet.
The shapes that will be used in SplitButtonLayout. Split button will morph between these shapes depending on the interaction of the buttons, assuming all of the shapes are CornerBasedShapes.
class SplitButtonShapes(
shape: Shape,
pressedShape: Shape?,
checkedShape: Shape?,
)
How to get one
Create it
SplitButtonShapes(shape, pressedShape, checkedShape)constructor
Ready-made values and functions that return it
Used by
Parameters that take a SplitButtonShapes.
SplitButtonDefaults.ElevatedLeadingButton(shapes)SplitButtonDefaults.ElevatedTrailingButton(shapes)SplitButtonDefaults.LeadingButton(shapes)SplitButtonDefaults.OutlinedLeadingButton(shapes)SplitButtonDefaults.OutlinedTrailingButton(shapes)SplitButtonDefaults.TonalLeadingButton(shapes)SplitButtonDefaults.TonalTrailingButton(shapes)SplitButtonDefaults.TrailingButton(shapes)
Properties
shape
val shape: Shape
pressedShape
val pressedShape: Shape?
checkedShape
val checkedShape: Shape?
Library docs
The shapes that will be used in SplitButtonLayout. Split button will morph between these shapes
depending on the interaction of the buttons, assuming all of the shapes are CornerBasedShapes.