Class

Shapes

Components are grouped into shape categories based on common features.

Source set: Android
public class Shapes(
    /** Buttons and Chips use this shape */
    public val small: CornerBasedShape = RoundedCornerShape(corner = CornerSize(50)),
    public val medium: CornerBasedShape = RoundedCornerShape(4.dp),
    /** Cards use this shape */
    public val large: CornerBasedShape = RoundedCornerShape(26.dp),
)

Components are grouped into shape categories based on common features. These categories provide a way to change multiple component values at once, by changing the category’s values.

Functions

copy

Source set: Android
public fun copy(
        small: CornerBasedShape = this.small,
        medium: CornerBasedShape = this.medium,
        large: CornerBasedShape = this.large,
    ): Shapes

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

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: