Overview
TheShadow type creates drop shadow and inset shadow effects for elements. You can control position, blur, spread, and color.
Creating Shadows
Basic Shadow
From Tuple
Create a shadow from a tuple:Shadow Properties
Position (X, Y)
Control shadow offset:Blur
Control blur amount:Spread
Control shadow expansion:Color
Set shadow color:Position Type
Control whether shadow is outside or inside:Usage Examples
Drop Shadow
Inset Shadow
Multiple Shadows
You can apply multiple shadows to a single element:Elevation Effect
Create material-design style elevation:Glow Effect
Create a glow by spreading shadow:Neumorphic Style
Create neumorphic (soft UI) effects:Text Shadow
For text elements, useTextShadow:
Shadow Position Types
Performance Considerations
- Shadows with large blur radii are more expensive to render
- Multiple shadows increase rendering cost
- Consider using simpler shadows for frequently updated elements
- Inset shadows may have different performance characteristics