jengacore.shadcn registry · Tailwind v4 · Radix and Base UI
Components
Foundation · @jengacore/utils

cn

cn(): clsx + tailwind-merge, the class helper every component imports from @/lib/utils.

Install

terminal
npx shadcn@latest add @jengacore/utils

Without the namespace configured: npx shadcn@latest add https://ui.jengacore.com/r/<new-york-v4|base-nova>/utils.json

npm packages

clsxtailwind-merge

Source

lib/utils.ts
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}