gridloc / src /lib /utils.ts
lassanmonster's picture
GridLoc: Bengaluru parking congestion digital twin
db3dbe1
Raw
History Blame Contribute Delete
371 Bytes
/**
* Minimal `cn` class-name joiner. shadcn ships a clsx + tailwind-merge version,
* but this project doesn't use shadcn and a dependency-free join is enough for
* our usage (no conflicting Tailwind classes are passed through it).
*/
export function cn(
...classes: Array<string | false | null | undefined>
): string {
return classes.filter(Boolean).join(' ')
}