Backgrounds
Gradient slat spotlight
Gradient slat spotlight: Vertical slats hide a colour gradient until a soft spotlight tracks the pointer across them and lights each slat it touches.
Using Gradient slat spotlight
Gradient slat spotlight uses the full page preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
accent | color | #7C5CFF | No additional limit in the metadata. |
blindCount | number | 16 | From 4 to 40; step 1 |
spotlightRadius | number | 0.5 | From 0.15 to 1.2; step 0.05 |
softness | number | 1 | From 0.2 to 3; step 0.1 |
angle | number | 0 | From -90 to 90; step 5 |
grain | number | 0.3 | From 0 to 1; step 0.05 |
Which frameworks are available for Gradient slat spotlight?
Gradient slat spotlight is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Gradient slat spotlight depend on?
The React metadata lists these npm dependencies beyond React: clsx.
What accessibility details are visible in Gradient slat spotlight?
The React source for Gradient slat spotlight includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Gradient slat spotlight handle reduced motion?
Gradient slat spotlight reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.