# ShadowScope

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/StyleScope.kt+class:androidx.compose.foundation.style.ShadowScope) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  interface ShadowScope
  ```
Known direct subclasses [DrawStyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/DrawStyleScope)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/DrawStyleScope` | An interface that introduces the drawing property to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` receiver scope. |

Known indirect subclasses [StyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` | A `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` is the receiver scope of a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` lambda. |

*** ** * ** ***

An interface that introduces the shadow properties to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` receiver scope.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` |   |

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies a drop shadow effect directly to the component, often used for text or specific graphics. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies one or more drop shadow effects directly to the component. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies an inner shadow effect to the component. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)` Applies one or more inner shadow effects to the component. | Cmn |

## Public functions

### dropShadow

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
fun dropShadow(value: Shadow): Unit
```

Applies a drop shadow effect directly to the component, often used for text or specific graphics. This is distinct from `shadowElevation` which is specific to platform elevation shadows. Multiple drop shadows can be applied by calling this function multiple times or using the vararg overload. The border and overall layout size are not affected by this shadow.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope#shape(androidx.compose.ui.graphics.Shape)` is set, the shadow will be applied to the shape's bounds.

This property is *not* inherited.

| Parameters |
|---|---|
| `value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` properties (color, offset, blurRadius) for the drop shadow. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(androidx.compose.ui.graphics.shadow.Shadow)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/dropShadow.modifier#(androidx.compose.ui.Modifier).dropShadow(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.shadow.Shadow)` |   |

### dropShadow

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
fun dropShadow(vararg value: Shadow): Unit
```

Applies one or more drop shadow effects directly to the component. This is distinct from `shadowElevation`. The border and overall layout size are not affected by these shadows.

This property is *not* inherited.

| Parameters |
|---|---|
| `vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` | A vararg of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` properties to apply as drop shadows. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(androidx.compose.ui.graphics.shadow.Shadow)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/dropShadow.modifier#(androidx.compose.ui.Modifier).dropShadow(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.shadow.Shadow)` |   |

### innerShadow

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
fun innerShadow(value: Shadow): Unit
```

Applies an inner shadow effect to the component. This shadow is drawn inside the bounds of the component. Multiple inner shadows can be applied by calling this function multiple times or using the vararg overload. The border and overall layout size are not affected by this shadow.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope#shape(androidx.compose.ui.graphics.Shape)` is set, the shadow will be applied to the shape's bounds.

This property is *not* inherited.

| Parameters |
|---|---|
| `value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` properties (color, offset, blurRadius) for the inner shadow. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(androidx.compose.ui.graphics.shadow.Shadow)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/innerShadow.modifier#(androidx.compose.ui.Modifier).innerShadow(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.shadow.Shadow)` |   |

### innerShadow

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
fun innerShadow(vararg value: Shadow): Unit
```

Applies one or more inner shadow effects to the component. These shadows are drawn inside the bounds of the component. The border and overall layout size are not affected by these shadows.

This property is *not* inherited.

| Parameters |
|---|---|
| `vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` | A vararg of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` properties to apply as inner shadows. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(androidx.compose.ui.graphics.shadow.Shadow)` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/innerShadow.modifier#(androidx.compose.ui.Modifier).innerShadow(androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.shadow.Shadow)` |   |