mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: add v3 * feat: upgrade lucide-react * feat: upgrade components to Tailwind v4 * feat(v3): add dark mode * wip * feat: components upgrade * style: format * feat: add select * feat: more components * feat: more components * fix: shadow * feat: upgrade sidebar * refactor: registry * refactor: internal * fix: registry * fix: charts * chore: build registry * fix: charts * feat: form * feat: clean up * fix: icons * fix: command demo * chore: add new-york-v4 to registry * fix: revert command in www registry * fix * chore: fix tests * fix: types * fix: lint errors * chore: build v4 registry * fix * fix: types
11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
import { clsx, type ClassValue } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export function absoluteUrl(path: string) {
|
|
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`
|
|
}
|