Skip to content
Buttons Fancy Stable

ShimmerButton

.md

Pill button with a satin sheen: a soft band of light sweeps across the face and lifts the label, then rests; on hover the highlight follows the pointer

Available for Svelte 5, React, and Vue 3.

Preview

Installation

pnpm add fancy-ui-svelte
import { ShimmerButton } from "fancy-ui-svelte";

Usage

svelte
<script lang="ts">
  import { ShimmerButton } from 'fancy-ui-svelte';
</script>

<ShimmerButton />

Examples

Basic Usage

Shimmer Colors

Change the shimmer highlight color.

Animation Speed

Control the shimmer speed.

Shimmer Size

Set how far the face is inset from the rim.

Custom Background

Set a custom background color.

Border Radius

Change the button shape.

Props

PropTypeDefaultDescription
shimmerColor string"#ffffff"Colour of the sheen, rim and hover highlight
shimmerSize string"0.05em"Thickness of the rim that catches the sheen
borderRadius string"100px"Button border radius
shimmerDuration string"3s"Duration of one sheen cycle: the sweep, then a pause
background string"rgba(0, 0, 0, 1)"Button background color
sound booleanfalsePlays the press cue on activation, once the user has enabled sound
onclick (event: MouseEvent) => void-Click handler, called after the press cue when sound is on
onpointermove (event: PointerEvent) => void-Pointer-move handler, called after the hover highlight is updated

Slots

SlotDescription
children Button content