2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Fade

Updated: May 9, 2025
View on GitHub
The Fade component creates a gradient fade effect that transitions from a base color to transparent in a specified direction. It can be used to create visually appealing overlays, masks, or transitions between content areas. Control the direction of the fade effect. Customize the base color of the fade effect. Add a dot pattern to the fade effect. Add a blur effect to the fade.
Prop
Type
Default
className
string
to
Which way it fades out.
bottomtopleftright
bottom
base
The colour it fades from. Match the surface behind it, or the fade shows as a band of the wrong colour.
BaseColorpage
blur
Backdrop blur behind the fade, in rem.
number0.5
pattern
Overlay a dot pattern in the base colour, and at what spacing.
{ display?: boolean; size?: SpacingToken; }{ display: false, size: "4", }
style
React.CSSProperties
children
React.ReactNode
…and every FlexProps propinherited
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club