Skip to content

Aurora Pill Button

A pill button with a cursor-following highlight.

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 AuroraPillButton from "./AuroraPillButton";
export default function Example() {
return (
<AuroraPillButton
children={"Preview"}
isActive={false}
/>
);
}

Using Aurora Pill Button

Supply the button label through children and use accentColor to match the surrounding interface.

Use isActive for an explicitly selected appearance. Keep the visible label meaningful without relying on the pointer highlight.

Props

NameTypeRequiredDefaultDescription
childrenReact.ReactNodeNoundefinedYour content. No demo content is rendered by default.
isActivebooleanNofalseWhether the button should render in its active state, with a stronger glow and slight lift.
classNamestringNo""Additional CSS class names, merged with base component styles.
accentColorstringNo"#c4bbff"Accent Color.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.
onPointerMovefunctionNoundefinedOptional caller pointer-move handler.
onPointerLeavefunctionNoundefinedOptional caller pointer-leave handler.

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.