Bookshelf

NEW

An interactive 3D bookshelf with animated book covers, keyboard navigation, and expandable reading details.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/bookshelf

API Reference

PropTypeDefaultDescription
booksBookItem[]requiredBooks to display, each with an id, title, author, and cover color.
openIdstring | nullundefinedOptional controlled ID of the currently open book.
onOpenChange(id: string | null, book?: BookItem) => voidundefinedCalled when the open book changes.
onRead(book: BookItem) => voidundefinedCalled by the default Read action.
actions(book: BookItem, close: () => void) => ReactNodeundefinedReplaces the default Read and Close actions.
ariaLabelstringBookshelfAccessible label for the book list.
classNamestringundefinedAdditional classes for the bookshelf root.