Book
A 3D book component featuring customizable sizes and color gradients.
API
Book
The Book
component serves as a wrapper for creating an interactive 3D book effect.
Props
Prop Name | Type | Default | Description |
---|---|---|---|
class | String | - | Additional classes for styling the component. |
duration | Number | 1000 | Animation duration in milliseconds. |
color | String | "zinc" | Color theme for the book gradient. |
isStatic | Boolean | false | Disables hover animations when true. |
size | String | "md" | Size variant of the book. |
radius | String | "md" | Border radius variant of the book. |
shadowSize | String | "lg" | Shadow size variant of the book. |
Usage
MyBookComponent.vue
BookHeader
The BookHeader
component is a flexible container with preserved 3D styling. It is intended to be used within a Book
to hold content with a 3D transformation effect.
Props
Prop Name | Type | Default | Description |
---|---|---|---|
class | String | - | Additional classes for custom styling. |
Usage
MyBookComponent.vue
BookTitle
The BookTitle
component is a flexible container with preserved 3D styling. It is intended to be used within a Book
to hold content with a 3D transformation effect.
Props
Prop Name | Type | Default | Description |
---|---|---|---|
class | String | - | Additional classes for custom styling. |
Usage
MyBookComponent.vue
BookDescription
The BookDescription
component is a flexible container with preserved 3D styling. It is intended to be used within a Book
to hold content with a 3D transformation effect.
Props
Prop Name | Type | Default | Description |
---|---|---|---|
class | String | - | Additional classes for custom styling. |
Usage
MyBookComponent.vue
Component Code
You can copy and paste the following code to create these components: