# Light sweep effect

https://fieldbook.lizardi.mx/components/light-sweep-effect

Category: Buttons
![Still of the Light sweep effect component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/light-sweep-effect.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/light-sweep-effect-9d710ce1c6.mp4 (5 s, silent)

Light sweep effect: A diagonal band of light that sweeps once across a button, triggered by hover, tap, or a repeating timer.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| trigger | select | hover | Options: hover, tap, continuous |
| duration | number | 1200 | From 400 to 2400; step 100 |
| angle | number | -15 | From -45 to 45; step 5 |
| accent | color | #FF6A1F | No additional limit in the metadata. |

## Usage notes

Light sweep effect uses the inline preview frame with a dark theme setting.

### Which frameworks are available for Light sweep effect?

Light sweep effect 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 Light sweep effect depend on?

The React metadata lists these npm dependencies beyond React: motion.

### What accessibility details are visible in Light sweep effect?

The React source for Light sweep effect includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Light sweep effect handle reduced motion?

Light sweep effect reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: effectiveDuration: prefersReducedMotion ? Math.min(duration, 200) : duration. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "light-sweep-effect",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Flip face button](https://fieldbook.lizardi.mx/components/flip-face-button)
- [Gradient swap button](https://fieldbook.lizardi.mx/components/gradient-swap-button)
- [Graphite Slab CTA](https://fieldbook.lizardi.mx/components/graphite-slab-cta)
- [Opposing rule text button](https://fieldbook.lizardi.mx/components/opposing-rule-text-button)
- [Press down sweep button](https://fieldbook.lizardi.mx/components/press-down-sweep-button)
- [Relay fill button](https://fieldbook.lizardi.mx/components/relay-fill-button)
