Cards Fancy Stable

Book

3D book component with cover, spine, and back face that opens on hover

Preview

Installation

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

Usage

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

<Book />

Examples

Basic Usage

Color Variants

Sizes

Different book sizes.

Props

PropTypeDefaultDescription
duration number1000Hover animation duration in ms
color BookColor"zinc"Color theme for the book cover gradient
isStatic booleanfalseShow book in open position without hover animation
size BookSize"md"Size variant of the book
radius BookRadius"md"Border radius variant
shadowSize BookShadowSize"lg"Drop shadow size variant

Slots

SlotDescription
childrenContent rendered on the book cover (front face)