Buttons Fancy Stable

ShimmerButton

Button with a rotating conic-gradient shimmer border effect

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"Shimmer highlight color
shimmerSize string"0.05em"Thickness of the shimmer border
borderRadius string"100px"Button border radius
shimmerDuration string"3s"Duration of the shimmer animation cycle
background string"rgba(0, 0, 0, 1)"Button background color

Slots

SlotDescription
childrenButton content