Card
Hover Cracker Animated Card
Your first document
Overview
The FirecrackerCard component is a visually appealing UI card that features a glowing and lifting effect when hovered. It’s designed to draw attention and add interactivity to your interface.
Key features include:
- Title and Description: Customizable title and description.
- Customizable Styles: Easy to apply additional styles using the
classNameprop.
New Year Boom!
Hover or click to see the sparks fly!
CLI Installation
Ensure your project is using ShadCN and the custom UI system. Then run:
Manual Installation
To manually set up the FirecrackerCard component in your project, follow these steps:
- Go to your
srcdirectory. - Create a folder structure:
components/ui/FirecrackerCard. - Inside the
glowLiftCardfolder, create a file namedfirecrackerCard.tsx. - Paste the following code into
firecrackerCard.tsx.
Usage
Import and use the FirecrackerCard component like this:
Props
| Prop | Type | Description | Default | props |
|---|---|---|---|---|
size | string | The size of the card | "md" | "sm" "md" "lg" |
variant | string | The color of the card | "default" | "default" "dark" "light" |
animate | string | The title displayed on the card | "false" | "true" |
description | string | The description text under the title | "Light it up" | "" |
buttonLabel | string | The description text under the button | "Hover or click to see the sparks fly!" | "" |
className | string | Additional Tailwind classes for outer container | "" | "" |