🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

ShadowScope

An interface that introduces the shadow properties to a Style receiver scope.

Source set: Common
public interface ShadowScope

An interface that introduces the shadow properties to a Style receiver scope.

Functions

dropShadow

Source set: Common
public fun dropShadow(value: Shadow)

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 ShapeScope.shape is set, the shadow will be applied to the shape's bounds.

This property is not inherited.

Parameters

value The Shadow properties (color, offset, blurRadius) for the drop shadow.

dropShadow

Source set: Common
public fun dropShadow(vararg value: Shadow)

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

value A vararg of Shadow properties to apply as drop shadows.

innerShadow

Source set: Common
public fun innerShadow(value: Shadow)

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 ShapeScope.shape is set, the shadow will be applied to the shape's bounds.

This property is not inherited.

Parameters

value The Shadow properties (color, offset, blurRadius) for the inner shadow.

innerShadow

Source set: Common
public fun innerShadow(vararg value: Shadow)

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

value A vararg of Shadow properties to apply as inner shadows.

Content updated: