Function: classNames()
classNames(...
params):string
Generates a string of class names from the provided arguments.
Parameters
params
...(string | number | boolean | string[] | Record<string, any>)[]
The arguments can be a mix of strings, numbers, booleans, arrays of strings, or objects. Strings, numbers, and truthy booleans are added directly to the class names. Arrays are flattened and their string elements are added to the class names. Objects are treated as {className: condition} pairs; class names with truthy conditions are added.
Returns
string
A string of class names separated by spaces.
