UNPKG

css-variants

Version:

Lightweight helpers to compose class names and inline styles using variants. Zero runtime deps, small bundle, and first-class TypeScript support.

7 lines (5 loc) 321 B
type ClassDictionary = Record<string, any>; type ClassValue = ClassValue[] | string | number | bigint | ClassDictionary | null | boolean | undefined; type ClassArray = ClassValue[]; declare function cx(...args: ClassValue[]): string; export { type ClassArray, type ClassDictionary, type ClassValue, cx, cx as default };