Skip to content

Aurora Shimmer

A coloured button with a light sweep on hover.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import AuroraShimmer from "./AuroraShimmer";
export default function Example() {
return (
<AuroraShimmer
label={"Launch Reactverse"}
variant={"primary"}
size={"md"}
/>
);
}

Using Aurora Shimmer

Use Aurora Shimmer for a primary action with a short label. Connect onClick to your action and choose size and variant for the available space.

Set accentColor and textColor together so the label stays readable throughout the light sweep.

Props

NameTypeRequiredDefaultDescription
labelstringNo"Click me"Accessible or visible label for this component.
variant'primary' | 'secondary'No"primary"Visual style of the button.
size'sm' | 'md' | 'lg'No"md"Size of the button.
onClickfunctionNoundefinedClick handler function.
accentColorstringNo"#b5f5d1"Accent Color.
textColorstringNo"#14271b"Text Color.
borderRadiusnumberNo10Border Radius.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.
childrenReactNodeNoundefinedYour content. No demo content is rendered by default.
classNamestringNo""Additional CSS class names, merged with base component styles.

Related components

An action label contracts into a circular loader and resolves to a checkmark.

Alternating shutters close into a solid button face on hover or focus.

A raised rubber-stamp button leaves a fading outline when pressed.