Search Something...

Install Utilities

Install the necessary utilities to fully leverage Emvifi UI in your project.

1Install dependencies

This library primarily relies on these libraries to function.

Text copied
npm i framer-motion clsx tailwind-merge
2Create a lib folder

In your app or src/app create a lib folder.

3Create a utils.ts file

In your lib folder create a utils.ts file.

4Add the function

Copy paste this function in your utils.ts.

Text copied
import { ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }
5And... That's it

You can now copy paste the different components.