Moving border button

Pro

A comet of light travels the true SVG path of any rounded border with a colour tail, bloom and a light spill on the surface, and on hover it springs to the pointer the short way round.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Exact on any radius, speed in pixels per second
  • Hover makes the light chase the pointer
  • Twin lights, colour tail, bloom and surface glow
  • Wraps a card, a button or an input; draws its own border
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/moving-border

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/moving-border.tsx.

More Pro components

Pull cord toggle

A switch on a cord: a verlet rope you grab and pull; past a threshold it clicks over, then the handle bounces and swings to rest. A click or Enter tugs it for you.

Pro

Slide to confirm

A slide to confirm track: released short, the thumb springs home with your speed; past the line it pops and pulls to the end like a magnet, spins while the async confirm runs and floods the track with a drawn check.

Pro

Split button

A primary action with a chevron menu: a highlight glides between items, typeahead and full keys, a spinner on the primary, a merge-button mode, and an expanding button group that fans out actions.

Pro