Buttons Fancy Stable
InteractiveHoverButton
Button with interactive hover effect revealing alternate content
Preview
svelte
<script lang="ts">
import { InteractiveHoverButton } from 'fancy-ui-svelte';
</script>
<InteractiveHoverButton text="Hover Me" />Installation
pnpm add fancy-ui-svelte
import { InteractiveHoverButton } from 'fancy-ui-svelte'
Usage
svelte
<script lang="ts">
import { InteractiveHoverButton } from 'fancy-ui-svelte';
</script>
<InteractiveHoverButton />Examples
Basic Usage
svelte
<script lang="ts">
import { InteractiveHoverButton } from "$lib/fancy-ui/interactive-hover-button";
</script>
<InteractiveHoverButton />Custom Text
svelte
<script lang="ts">
import { InteractiveHoverButton } from "$lib/fancy-ui/interactive-hover-button";
</script>
<div class="flex items-center gap-4">
<InteractiveHoverButton text="Get Started" />
<InteractiveHoverButton text="Learn More" />
<InteractiveHoverButton text="Subscribe" />
</div>Custom Styling
svelte
<script lang="ts">
import { InteractiveHoverButton } from "$lib/fancy-ui/interactive-hover-button";
</script>
<div class="flex items-center gap-4">
<InteractiveHoverButton
text="Danger"
class="border-red-500/30 [&_div>.size-2]:bg-red-500 [&>div:last-child]:text-white"
/>
<InteractiveHoverButton
text="Success"
class="border-green-500/30 [&_div>.size-2]:bg-green-500 [&>div:last-child]:text-white"
/>
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Button" | Button label text (used when children slot is not provided) |
Slots
| Slot | Description |
|---|---|
children | Button content (overrides text prop) |
Links
Related components
Gr
GradientButton
Button with a rotating conic-gradient rainbow border effect
Buttons Stable
Ra
RainbowButton
Animated button with a rainbow gradient border effect
Buttons Stable
Ri
RippleButton
Button that spawns an expanding, fading ripple circle centered on the click point, with configurable color and duration
Buttons Stable