# Sliding label button

https://fieldbook.lizardi.mx/components/sliding-label-button

Category: Buttons
![Still of the Sliding label button component, a Fieldbook UI component in Buttons.](https://fieldbook.lizardi.mx/thumbs/sliding-label-button.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/sliding-label-button-735d254432.mp4 (5 s, silent)

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.

## 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 |
| --- | --- | --- | --- |
| label | text | Browse the catalog | Up to 32 characters |
| hoverLabel | text | See all 240 pieces | Up to 32 characters |
| variant | select | solid | Options: solid, quiet |
| accent | color | #F5C542 | No additional limit in the metadata. |
| slideMs | number | 300 | From 120 to 800; step 20 |

## Usage notes

Sliding label button uses the inline preview frame with a light/dark theme setting.

### 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.

## 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": "sliding-label-button",
    "framework": "react"
  }
}
```

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

## Related open components

- [Rolling Label Button](https://fieldbook.lizardi.mx/components/label-roll-button)
- [Dot flood button](https://fieldbook.lizardi.mx/components/dot-flood-button)
- [Skewed wipe swap button](https://fieldbook.lizardi.mx/components/skewed-wipe-swap-button)
- [Amber upload pill](https://fieldbook.lizardi.mx/components/amber-upload-pill)
- [Arrow to label pill](https://fieldbook.lizardi.mx/components/arrow-to-label-pill)
- [Arrow wipe call to action](https://fieldbook.lizardi.mx/components/arrow-wipe-cta)
