Follow the official installation guide to add it to your project.
Components are animated using Motion.
npm install motion
Create a lib/utils.ts
file to manage Tailwind CSS classes:
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Add Lucide React icons:
npm install lucide-react
You can now start adding components to your project.
The command above will add the Hero Video component to your project. You can then import it anywhere in your project.
You can also choose manual installation and copy the code from the components page.