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