A utilily function that saves you from style conflicts.
The cn
utility function combines clsx
and tw-merge
.
This enables you to construct className strings conditionally without having to worry about Tailwind CSS style conflicts.
lib/utils.ts
file:Last Updated: 17 Oct, 2024