Skip to content

Hook useClassNames() ​

useClassNames(classNames: (string | undefined)[], block?: string, element?: string, modifier?: string | string[]): string

Source: classNames.ts

Combines class names and an optional static class name.

Parameters ​

classNames ​

(string | undefined)[]

The class names to combine.

block? ​

string

The name of the block.

element? ​

string

The name of the element.

modifier? ​

string | string[]

The name of the modifier(s).

Returns ​

string

Built by Prozilla