UNPKG

@hanzo/ui

Version:

Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.

29 lines (27 loc) 673 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/utils.ts import { clsx } from "clsx"; import { twMerge } from "tailwind-merge"; function cn(...inputs) { return twMerge(clsx(inputs)); } __name(cn, "cn"); function formatDate(input) { const date = new Date(input); return date.toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" }); } __name(formatDate, "formatDate"); function absoluteUrl(path) { return `${process.env.NEXT_PUBLIC_APP_URL || ""}${path}`; } __name(absoluteUrl, "absoluteUrl"); export { absoluteUrl, cn, formatDate };