Utils
Utils is a collection of utility functions that are used in DarenUI.
cx
cx is a utility function that is used to combine multiple class names into one
string. It's a combination of clsx
and twMerge
.
Usage
isBrowser
isBrowser is a utility function that is used to check if the code is running in a browser.
Usage
isArray
isArray is a utility function that is used to check if the given value is an array.
Usage
isObject
isObject is a utility function that is used to check if the given value is an object.
Usage
ExtractProps
ExtractProps is a type-utility function that is used to extract the props from a given component.