Beautiful map components. 100% Free, Zero config, one command setup.
TypeScript
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function slugToTitle(name: string): string {
return name.replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
}