androidx.compose.material3
IconToggleButtonShapesSince 1.10
Class
No hand-written docs yet.
The shapes that will be used in toggle buttons. Toggle button will morph between these three shapes depending on the interaction of the toggle button, assuming all of the shapes are CornerBasedShapes.
class IconToggleButtonShapes(
shape: Shape,
pressedShape: Shape = shape,
checkedShape: Shape = shape,
)
How to get one
Create it
IconToggleButtonShapes(shape, pressedShape, checkedShape)constructor
Ready-made values and functions that return it
Used by
Parameters that take a IconToggleButtonShapes.
FilledIconToggleButton(shapes)FilledTonalIconToggleButton(shapes)IconToggleButton(shapes)OutlinedIconToggleButton(shapes)
Properties
shape
val shape: Shape
pressedShape
val pressedShape: Shape
checkedShape
val checkedShape: Shape
Functions
copy
fun copy(
shape: Shape? = this.shape,
pressedShape: Shape? = this.pressedShape,
checkedShape: Shape? = this.checkedShape,
): IconToggleButtonShapes
Returns a copy of this IconButtonShapes, optionally overriding some of the values.
Library docs
The shapes that will be used in toggle buttons. Toggle button will morph between these three
shapes depending on the interaction of the toggle button, assuming all of the shapes are
CornerBasedShapes.