Skip to content
Menu

Buttons

Sliding label button

Sliding label button: A solid button whose label rolls straight up out of the frame while a second line rolls in from below to take its place.

Using Sliding label button

Sliding label 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
labeltextBrowse the catalogUp to 32 characters
hoverLabeltextSee all 240 piecesUp to 32 characters
variantselectsolidOptions: solid, quiet
accentcolor#F5C542No additional limit in the metadata.
slideMsnumber300From 120 to 800; step 20
Which frameworks are available for Sliding label button?

Sliding label 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 Sliding label button depend on?

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

What accessibility details are visible in Sliding label button?

The React source for Sliding label button includes: attributes and handlers (aria-hidden, aria-label, onKeyDown, onKeyUp); key comparisons (Enter, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Sliding label button handle reduced motion?

Sliding label button 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