Skip to content
Menu

Buttons

Slanted shutter button

Slanted shutter button: Two slanted accent panels drop from above and below to close over the pill on a diagonal seam while the label rolls once and inverts through the fill.

Using Slanted shutter button

Slanted shutter 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.

ControlTypeDefaultPreview limits
labeltextPublishUp to 32 characters
accentcolor#FF4D8DNo additional limit in the metadata.
skewnumber16From 0 to 30; step 2
durationnumber0.2From 0.1 to 0.6; step 0.05
radiusnumber40From 4 to 40; step 2
Which frameworks are available for Slanted shutter button?

Slanted shutter 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 Slanted shutter button depend on?

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

What accessibility details are visible in Slanted shutter button?

The React source for Slanted shutter button includes: 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 Slanted shutter button handle reduced motion?

Slanted shutter button reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: bottomRest: reduced ? { y: 0, opacity: 0 } : { y: size.h + 2, opacity: 1 }; duration: reduced ? Math.max(duration, 0.15) : duration; engaged && !reduced ? rollTransition : { duration: 0.12 }. 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