Skip to content

lib/cn

@fungi.computer/caps


@fungi.computer/caps / lib/cn

const cn: CnFunction

Merge conditional classes with Tailwind rules and Stipe’s named spacing.

resolveClassName<State>>(className, state): string | undefined

Resolve a typed React class-name prop before merging its classes.

State

string | ((state) => string | undefined) | undefined

State

string | undefined