toggleableShapes

@Composable
fun toggleableShapes(shape: Shape? = null, pressedShape: Shape? = null, checkedShape: Shape? = null): IconToggleButtonShapes

Creates a IconToggleButtonShapes that correspond to the shapes in the default, pressed, and checked states. Icon button will morph between these shapes as long as the shapes are all CornerBasedShapes.

Parameters

shape

the active shape for IconToggleButtonShapes

pressedShape

the pressed shape for IconToggleButtonShapes

checkedShape

the checked shape for IconToggleButtonShapes


Creates a ButtonShapes that correspond to a default IconToggleButton in the active, pressed and selected states. IconToggleButton will morph between these shapes as long as the shapes are all CornerBasedShapes.