Installation
Steps for configuration when using this library
Information
This project and all components are written mainly using TypeScript. ShadCn is also heavily used with component library. Keep in mind this library is strictly used for NextJs React.
Prerequisites
These are the main dependencies you will need to get started.
npx install tailwindcss@latest clsx tailwind-merge framer-motion
Copy and paste the following code into your project.
// lib/utils.ts
import clsx, { ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Please feel free to install ShadCn as it is used in some templates and components.