Utils
docs/utilsFreeUtility
Shared utility helpers for solidcn components
Live preview
live · rendered by the registry
Rendered by docs on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://solidcn.dev/r/utils.jsonSource
1import { type ClassValue, clsx } from "clsx";2import { twMerge } from "tailwind-merge";34export function cn(...inputs: ClassValue[]): string {5 return twMerge(clsx(inputs));6}
