shapes

@Composable
fun shapes(shape: Shape? = null, pressedShape: Shape? = null): IconButtonShapes

Creates a IconButtonShapes that correspond to the shapes in the default or pressed states. Icon button will morph between these shapes as long as the shapes are all CornerBasedShapes.

Parameters

shape

the unchecked shape for ButtonShapes

pressedShape

the unchecked shape for ButtonShapes


@Composable
fun shapes(): IconButtonShapes

Creates a IconButtonShapes that correspond to a default IconButton in the active and pressed states. IconButton will morph between these shapes as long as the shapes are all CornerBasedShapes.