Interface

ShapeScope

An interface that introduces the shape property to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface ShapeScope

An interface that introduces the shape property to a Style receiver scope.

Functions

shape

Source set: Common
public fun shape(value: Shape)

Sets the Shape for the component. This shape is used for clipping (ClipScope.clip), background rendering (BackgroundScope.background), and border rendering.

If shape is not specified then a androidx.compose.ui.graphics.RectangleShape is used.

This property is not inherited

Parameters

value The shape to apply.
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: