Umbra UI

ShimmerButton

A call-to-action button with a looping shimmer and a glowing gradient border.

Animatedimport { ShimmerButton } from 'umbra-ui/motion'

Props

PropTypeDefaultDescription
effect "shimmer" | "glow" | "both"both`shimmer` sweeps a highlight across the face, `glow` adds a gradient border and halo, `both` does both.
endIcon ReactNode—Icon rendered after the label (decorative).
fullWidth booleanfalseStretch to the container width.
loading booleanfalseShows a spinner, sets `aria-busy` and ignores clicks while keeping focus.
reducedMotion "system" | "always" | "never""system"Reduced-motion override. Under reduced motion the sweep is removed; the static glow stays.
size "sm" | "md" | "lg""md"Control height.
startIcon ReactNode—Icon rendered before the label (decorative).
tone "accent" | "neutral" | "danger""accent"Colour intent.
variant "outline" | "solid" | "soft" | "ghost""solid"Visual weight.

Usage notes

Takes every Button prop except asChild.

Accessibility

  • Still a native button with the same keyboard behaviour.
  • The sweep and gradient border are decorative and hidden from assistive tech.
  • Under reduced motion the sweep is removed entirely.

Import

import { ShimmerButton } from 'umbra-ui/motion';
import 'umbra-ui/styles.css'; // once, at the root of your app