Known direct subclasses
DrawStyleScope

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

Known indirect subclasses
StyleScope

A StyleScope is the receiver scope of a Style lambda.


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

See also
StyleScope

Summary

Public functions

Unit

Applies a drop shadow effect directly to the component, often used for text or specific graphics.

Cmn
Unit
dropShadow(vararg value: Shadow)

Applies one or more drop shadow effects directly to the component.

Cmn
Unit

Applies an inner shadow effect to the component.

Cmn
Unit
innerShadow(vararg value: Shadow)

Applies one or more inner shadow effects to the component.

Cmn

Public functions

dropShadow

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

This property is not inherited.

Parameters
value: Shadow

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

dropShadow

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: Shadow

A vararg of Shadow properties to apply as drop shadows.

innerShadow

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

This property is not inherited.

Parameters
value: Shadow

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

innerShadow

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: Shadow

A vararg of Shadow properties to apply as inner shadows.