DocumentationInteractive Book

Interactive Book

An interactive 3D book with realistic page-turning animations and hover effects.

The Art of UI

ObsidianUI

The Art of UI

Interactive Edition

1

Chapter One

Once upon a time, in a land of beautiful UI components, there lived a developer who dreamed of creating the perfect interactive experience...

2

The journey was long, but the destination was worth every line of code written with passion and purpose.

3

Chapter Two

The developer discovered the power of Framer Motion, and with it, brought life to static interfaces. Buttons danced, cards floated, and users smiled.

4

Animation was not just decoration—it was communication, guiding users through experiences with grace and clarity.

5

The End

And so, with glassmorphism effects and smooth transitions, the developer created components that stood the test of time. The end... or just the beginning?

6

Thank you for reading. May your code be clean and your animations smooth.

The End

Click to Open

Install using CLI

npx shadcn@latest add "https://obsidianui.dev/r/interactive-book.json"

Install Manually

1

Install dependencies

npm install framer-motion lucide-react clsx tailwind-merge
2

Copy the source code

Copy into components/ui/interactive-book.tsx

Props

Prop NameTypeDefaultDescription
coverImagestringRequiredURL for the book cover image
bookTitlestring'Book Title'Title displayed on cover
bookAuthorstring'Author Name'Author name on cover
pagesBookPage[]RequiredArray of page objects
widthnumber | string350Book width in pixels
heightnumber | string500Book height in pixels