Skip to content
Menu

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.

ControlTypeDefaultPreview limits
accentcolor#7C5CFFNo additional limit in the metadata.
blindCountnumber16From 4 to 40; step 1
spotlightRadiusnumber0.5From 0.15 to 1.2; step 0.05
softnessnumber1From 0.2 to 3; step 0.1
anglenumber0From -90 to 90; step 5
grainnumber0.3From 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.

Connect your agent

Related open components