androidx.compose.material3

ChipShapesSince 1.12

Class

No hand-written docs yet.

The shapes that will be used in chips. Chip will morph between these shapes depending on the state of the chip, assuming all of the shapes are CornerBasedShapes.

class ChipShapes(
    shape: Shape,
    selectedShape: Shape,
    pressedShape: Shape = selectedShape,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a ChipShapes.

Properties

shape

val shape: Shape

selectedShape

val selectedShape: Shape

pressedShape

val pressedShape: Shape

Functions

copy

fun copy(
    shape: Shape? = this.shape,
    selectedShape: Shape? = this.selectedShape,
    pressedShape: Shape? = this.pressedShape,
): ChipShapes

Returns a copy of this ChipShapes, optionally overriding some of the values.

Library docs

The shapes that will be used in chips. Chip will morph between these shapes depending on the state of the chip, assuming all of the shapes are CornerBasedShapes.