androidx.compose.material3

ToggleButtonShapesSince 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 ToggleButtonShapes(
    shape: Shape,
    pressedShape: Shape,
    checkedShape: Shape,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a ToggleButtonShapes.

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,
): ToggleButtonShapes

Returns a copy of this ToggleButtonShapes, 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.