GitHub
Open Github

Perspective Book

A 3D book component with hover animation and customizable appearance.

Installation

pnpm dlx shadcn@latest add @spell/perspective-book

Usage

import { PerspectiveBook } from "@/components/perspective-book";
<PerspectiveBook>
  <div className="flex flex-col gap-4">
    <h1 className="font-semibold leading-5">
      Your complete platform for the Design.
    </h1>
    <BookOpen className="size-5" />
  </div>
</PerspectiveBook>

Examples

Textured

Props

PropTypeDefault
children
React.ReactNode
-
size
string
default
className
string
-
textured
boolean
false