Components / component

Roll Button

v1.0.0 · premium

A pill button whose label rolls letter by letter on hover while a fill rises behind it and an arrow slides through.

Roll Button demo

Implementation

A pill button whose label rolls letter by letter on hover while a fill rises behind it and an arrow slides through.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function RollButton({
  children, href, onClick, type = 'button', variant = 'solid', size = 'md', arrow = false, stagger = 14, disabled = fals
  ink, paper, className,

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A pill button whose label rolls letter by letter on hover while a fill rises behind it and an arrow slides through.

Frequently asked questions

Does it work on touch screens?

Yes. The hover animation only plays on devices that can hover, so touch screens never stick in a hovered state. Pressing still scales the button, and keyboard focus plays the roll with a visible outline.

Why must the label be a plain string?

Each letter is animated as a hidden copy, so the label is split into letters. The full label is announced once to assistive technology. For an icon-only button, use your own element and the same hover colors.