as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

DropShadowValue Object Type

The DropShadowValue object is taken by the filter style prop for the dropShadow function. It is comprised of 2 or 3 lengths and an optional color. These values collectively define the drop shadow's color, position, and blurriness.

Example

{
  offsetX: 10,
  offsetY: -3,
  standardDeviation: '15px',
  color: 'blue',
}

Keys and values

offsetX

The offset on the x-axis. This can be positive or negative. A positive value indicates right and negative indicates left.

Type Optional
number | string No

offsetY

The offset on the y-axis. This can be positive or negative. A positive value indicates up and negative indicates down.

Type Optional
number | string No

standardDeviation

Represents the standard deviation used in the Gaussian blur algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.

Type Optional
number | string Yes

color

The color of the shadow. The default is black.

Type Optional
color Yes

Used by


Last updated: Jul 07, 2026