- Docs
- Components
- 3D & Shaders
- Shader Card
A content card with a luminous flame rising behind it
A stunning card component with an animated shader effect
| Name | Type | Default | Description |
|---|---|---|---|
width | number | string | 400 | Width of the card. Numbers are pixels. |
height | number | string | 500 | Height of the card. Numbers are pixels. |
borderRadius | string | "12px" | Corner radius of the card. |
color | string | "#5227FF" | Colour of the flame. |
highlightColor | string | — | Colour of the luminous edges and contour lines. Defaults to a lighter, warmer tone of the flame colour. |
backgroundColor | string | — | Card fill. Defaults to the theme's card colour. |
speed | number | 0.5 | Speed of the flame. |
positionY | number | 0 | Vertical position of the flame. Higher values raise it. |
scale | number | 4 | Zoom of the flame. |
effectRadius | number | 0.9 | Size of the flame's core. |
effectBoost | number | 0.5 | How full the flame burns. |
edgeMin | number | 0 | Edge threshold at the base of the flame. |
edgeMax | number | 1 | Edge threshold at the tip of the flame. |
falloffPower | number | 2 | How quickly the flame fades toward its edges. |
noiseScale | number | 1.5 | Size of the flickering detail. |
widthFactor | number | 1.5 | Width of the flame. |
waveAmount | number | 0.15 | How much the flame sways. |
branchIntensity | number | 2 | How much the flame splits into tongues. |
verticalExtent | number | 1.5 | Vertical stretch of the flame. |
horizontalExtent | number | 1.5 | Horizontal stretch of the flame. |
contours | number | 1 | Strength of the fine contour lines inside the flame. |
flash | number | 0.6 | Strength of the periodic bright pulse. |
blur | number | 4 | Soft focus on the flame, in pixels. |
intensity | number | 1 | Brightness of the flame. |
bloom | number | 0.8 | Glow that spills from the brightest edges. |
grain | number | 0.25 | Fine film grain inside the flame. |
fade | number | 0.6 | How far below the top the flame fades out, keeping the content readable. |
opacity | number | 1 | Opacity of the flame. |
interactive | boolean | true | Hover tilts the card toward the pointer and stokes the flame. |
tiltStrength | number | 8 | Maximum tilt in degrees. |
parallax | number | 1 | Depth between the flame and the content while tilting. |
hoverRise | number | 1 | How much the flame rises, brightens and quickens on hover. |
intro | boolean | true | The flame rises into the card when it appears. |
autoPlay | boolean | true | Animate the flame. |
paused | boolean | false | Freeze the flame. Reduced-motion users get a still flame. |
dpr | number | 2 | Maximum device pixel ratio for the canvas. |
fragmentShader | string | — | Custom GLSL fragment shader that replaces the flame. |
ref | { replay } | — | replay() plays the rising intro again. |
children | ReactNode | — | Content shown on top of the flame. |
className | string | "" | Classes for the card. |
style | CSSProperties | — | Inline styles for the card. |
widthnumber | stringWidth of the card. Numbers are pixels.
400heightnumber | stringHeight of the card. Numbers are pixels.
500borderRadiusstringCorner radius of the card.
"12px"colorstringColour of the flame.
"#5227FF"highlightColorstringColour of the luminous edges and contour lines. Defaults to a lighter, warmer tone of the flame colour.
—backgroundColorstringCard fill. Defaults to the theme's card colour.
—speednumberSpeed of the flame.
0.5positionYnumberVertical position of the flame. Higher values raise it.
0scalenumberZoom of the flame.
4effectRadiusnumberSize of the flame's core.
0.9effectBoostnumberHow full the flame burns.
0.5edgeMinnumberEdge threshold at the base of the flame.
0edgeMaxnumberEdge threshold at the tip of the flame.
1falloffPowernumberHow quickly the flame fades toward its edges.
2noiseScalenumberSize of the flickering detail.
1.5widthFactornumberWidth of the flame.
1.5waveAmountnumberHow much the flame sways.
0.15branchIntensitynumberHow much the flame splits into tongues.
2verticalExtentnumberVertical stretch of the flame.
1.5horizontalExtentnumberHorizontal stretch of the flame.
1.5contoursnumberStrength of the fine contour lines inside the flame.
1flashnumberStrength of the periodic bright pulse.
0.6blurnumberSoft focus on the flame, in pixels.
4intensitynumberBrightness of the flame.
1bloomnumberGlow that spills from the brightest edges.
0.8grainnumberFine film grain inside the flame.
0.25fadenumberHow far below the top the flame fades out, keeping the content readable.
0.6opacitynumberOpacity of the flame.
1interactivebooleanHover tilts the card toward the pointer and stokes the flame.
truetiltStrengthnumberMaximum tilt in degrees.
8parallaxnumberDepth between the flame and the content while tilting.
1hoverRisenumberHow much the flame rises, brightens and quickens on hover.
1introbooleanThe flame rises into the card when it appears.
trueautoPlaybooleanAnimate the flame.
truepausedbooleanFreeze the flame. Reduced-motion users get a still flame.
falsedprnumberMaximum device pixel ratio for the canvas.
2fragmentShaderstringCustom GLSL fragment shader that replaces the flame.
—ref{ replay }replay() plays the rising intro again.
—childrenReactNodeContent shown on top of the flame.
—classNamestringClasses for the card.
""styleCSSPropertiesInline styles for the card.
—