Skip to content
TrademarkTrademark
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.

Direction

Control the direction of the fade effect.

Base color

Customize the base color of the fade effect.

Pattern

Add a dot pattern to the fade effect.

Blur

Add a blur effect to the fade.

API reference

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