Buttons Fancy Stable

RainbowButton

Animated button with a rainbow gradient border effect

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

Slots

SlotDescription
childrenButton label content