Skip to content
Menu

Inputs

Shape wipe theme toggle

Shape wipe theme toggle: A sun and moon icon button that switches the panel theme with a shape wipe that grows from the button, swaps the colors at full cover, then shrinks away.

Using Shape wipe theme toggle

Shape wipe theme toggle 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
shapeselectcircleOptions: circle, diamond, hexagon, square, star
durationnumber500From 200 to 1000; step 50
accentColorcolor#38BDF8No additional limit in the metadata.
fromCenterbooleanfalseNo additional limit in the metadata.
Which frameworks are available for Shape wipe theme toggle?

Shape wipe theme toggle 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 Shape wipe theme toggle depend on?

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

What accessibility details are visible in Shape wipe theme toggle?

The React source for Shape wipe theme toggle includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Shape wipe theme toggle handle reduced motion?

Shape wipe theme toggle reads the motion preference in its React source through useReducedMotion(). 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