Utility functions including the cn classname helper.
View the full component source code below.
import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
npx shadcn@latest add https://registry.mukoko.com/api/v1/ui/utilsFetch this component's metadata and source code from the registry API.
/api/v1/ui/utilslib/utils.ts