Developers
Start building
Themes/Theme SDK/Modules/ui/Functions

Functions

The functions of @poltura/theme-sdk/ui.

On this page
import { … } from '@poltura/theme-sdk/ui';

cn

Joins class names, skips falsy ones and resolves conflicting Tailwind classes so the last one wins.

cn(...inputs: ClassValue[]): string

Parameters

  • inputs: ClassValue[]: The class names, arrays and { name: condition } objects to join.

Returns: One class name string.

Last updated