Manta Developers
GitHub
Menu

@manta-eu/react/style

Reference for @manta-eu/react/style as it is on main.

Type Aliases

ClassProp

ClassProp = { class?: ClassNameValue; className?: never; } | { class?: never; className?: ClassNameValue; }


ClassValue

ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined


VariantPropsOf

VariantPropsOf<Config> = { [Key in keyof Config[“variants”]]?: keyof Config[“variants”][Key] extends “true” | “false” ? boolean : keyof Config[“variants”][Key] }

Type Parameters

Config

Config extends object

Functions

cn()

cn(…inputs): string

Parameters

inputs

…ClassValue[]

Returns

string