Buttons
Spotlight fill button
Spotlight fill button: A pill button in one saturated accent that dims its fill under a dark veil on hover while a soft oval spotlight follows the pointer.
Using Spotlight fill button
Spotlight fill button uses the inline preview frame with a light/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 |
|---|---|---|---|
label | text | Start free trial | Up to 24 characters |
accent | color | #FF6A1F | No additional limit in the metadata. |
spotSize | number | 160 | From 60 to 260; step 10 |
dim | number | 0.3 | From 0 to 0.6; step 0.05 |
followPointer | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Spotlight fill button?
Spotlight fill button 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 Spotlight fill button depend on?
The React metadata lists no additional npm dependencies beyond React.
What accessibility details are visible in Spotlight fill button?
The React source for Spotlight fill button includes: native elements (button); attributes and handlers (aria-hidden, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Spotlight fill button handle reduced motion?
The source scan found no direct useReducedMotion() or matchMedia preference read in Spotlight fill button's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.