Effects / Glass / Shaders
AnimatedGradient
client24.25 kB
@stellaria/nebula-webAnimatedGradientPropsPreview
Props
6| Prop | Type | Default |
|---|---|---|
children | ReactNode | — |
className Composes with the classes `Box` computes instead of replacing them. | string | — |
component | (ElementType & C) | — |
gradient | { from: ColorExtended; to: ColorExtended; deg?: number; animate?: boolean; } | GradientRole | "brand" |
scrim | number | 0 |
speed | AnimatedGradientSpeed | "base" |
Slot props
1Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
scrimProps The veil that dims the gradient. Only rendered with `scrim` greater than 0, which is where its opacity comes from; the slot is what lets you tint it another colour without forking. The drifting layer has no slot: it is the mechanism of the animation. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 128