UNPKG

@ffsm/html-factory

Version:

A lightweight utility for creating React HTML factory components with TypeScript support, ref forwarding, and className merging.

10 lines (9 loc) 425 B
/** * Utility function to combine class names with deduplication * @param {...Array<string | number | boolean | null | undefined>} classes - Classes to combine * @returns {string} A combined, deduplicated string of class names * * @example * clsx('btn', conditional && 'btn-primary', 'btn') // 'btn btn-primary' */ export declare function clsx(...classes: Array<string | number | boolean | null | undefined>): string;