CardsNew

Book

A book cover with a spine and pages. On hover it turns in 3D. CSS transforms only.

Customize

color
textColor

Based on Book (MIT license) ยท Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
titlestringโ€”Title on the cover.
variant'stripe' | 'simple'"stripe"Cover with a color stripe or a plain one.
colorstring"#d4d4d4"Color of the stripe or the whole cover.
textColorstring"#fafafa"Title color.
widthnumber196Book width in pixels.
illustrationReactNodeโ€”Illustration in the cover stripe.
logoReactNodeโ€”Logo or icon at the bottom of the cover.
classNamestringโ€”Classes for the wrapper.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all