Skip to Content

utils

lib

Utility functions including the cn classname helper.

Source Code

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))
}

Installation

npx shadcn@latest add https://registry.mukoko.com/api/v1/ui/utils

Dependencies

clsxtailwind-merge

API

Fetch this component's metadata and source code from the registry API.

GET/api/v1/ui/utils

Source

lib/utils.ts