Toggle Sidebar B
AppearanceLight & dark mode D

Specular Button

Glass button with a shader-driven specular rim light that sweeps around the edge and follows the cursor.

Default

Move the pointer around the button and the rim light turns toward it. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab

Customize

Highlight
Edge
Tint
Text
Size
Radius18px
Tint Opacity0
Blur0px
Intensity1
Shine Size10deg
Shine Fade40deg
Thickness1px
Speed0.35
Proximity250px

API Reference

SpecularButton

PropTypeDefaultDescription
size"sm" | "md" | "lg""lg"Preset padding and font size of the button.
radiusnumber18Corner radius in pixels; clamps to a pill automatically.
tintstring"#ffffff"Color of the glass background tint.
tintOpacitynumber0Strength of the glass tint.
blurnumber0Backdrop blur in pixels behind the button.
textColorstring"#f5f5f5"Color of the button label.
lineColorstring"#ffffff"Color of the moving specular highlight.
baseColorstring"#525252"Color of the static edge stroke under the highlight.
intensitynumber1Brightness of the specular highlight.
shineSizenumber10Angular size in degrees of each shine streak along the edge.
shineFadenumber40How gradually each streak fades out at its ends, in degrees.
thicknessnumber1Width of the highlight line in pixels.
speednumber0.35Rotation speed of the sweep when autoAnimate is on.
followMousebooleantruePoint the light toward the cursor.
proximitynumber250Distance in pixels within which the shine fades in as the cursor approaches.
autoAnimatebooleanfalseKeep the shine always on with a rotating sweep, regardless of cursor distance.
disabledbooleanfalseDisable the button.
type"button" | "submit" | "reset""button"Native button type.
SlotDescription
defaultButton label or any custom content. Defaults to "Get Started".

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
Enter + SpaceActivates the button.
  • It renders a native button, so focus, disabled state and form submission work as usual. The WebGL layer is decorative and hidden from assistive technology.