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

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

Adjust the border thickness.

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

Slots

SlotDescription
childrenButton content