Skip to content

Instantly share code, notes, and snippets.

@jotredev
Created October 3, 2023 17:45
Show Gist options
  • Save jotredev/ab8ba9eace1b846a2ba6d56fe8b8060a to your computer and use it in GitHub Desktop.
Save jotredev/ab8ba9eace1b846a2ba6d56fe8b8060a to your computer and use it in GitHub Desktop.
Funciones
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
@jotredev
Copy link
Author

jotredev commented Oct 3, 2023

Es importante tener las siguientes librerías instaldas:

  • npm install clsx
  • npm inxtall tailwind-merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment