Buttons Fancy Stable

RainbowButton

.md

Animated button with a rainbow gradient border; on hover or focus a rainbow beam rides around the border with a soft halo

Preview

Installation

pnpm add fancy-ui-svelte
import { RainbowButton } from 'fancy-ui-svelte'

Usage

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

<RainbowButton />

Examples

Basic Usage

Animation Speed

Control the animation speed.

With Icons

Add icons inside the button.

Disabled State

Render as an anchor element.

Custom Styling

Override styles with the class prop.

Props

PropTypeDefaultDescription
speed number2Animation speed in seconds
href string-Render as anchor element when provided
sound booleanfalsePlays the press cue on activation, once the user has enabled sound

Slots

SlotDescription
childrenButton label content