---
title: "ShapeScope"
description: "An interface that introduces the shape property to a Style receiver scope."
type: "interface"
lastmod: "2026-05-20T01:13:53.383429Z"
---
## API Reference

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface ShapeScope
```

An interface that introduces the [shape](/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Shape) property to a [Style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) receiver scope.

## Functions

### shape

```kotlin
fun shape(value: Shape)
```

Sets the [Shape](/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Shape) for the component. This shape is used for clipping ([ClipScope.clip](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/ClipScope)),
background rendering ([BackgroundScope.background](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/BackgroundScope)), and border rendering.

If [shape](/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Shape) is not specified then a [androidx.compose.ui.graphics.RectangleShape](/jetpack-compose/androidx.compose.ui/ui-graphics/properties/RectangleShape) is used.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The shape to apply. |
