@manhphi1309/utils
v0.3.4
Published
Utility functions for formatting class names and other common tasks.
Downloads
2,315
Readme
@manhphi1309/utils
Utility functions for formatting class names and other common tasks.
Subcomponents
This package provides the following utilities:
cn
Dependencies
This package relies on:
clsxtailwind-merge
Installation
npm install @manhphi1309/utilsUsage Example
import { cn } from "@manhphi1309/utils"
export default function Example() {
return (
<div className={cn("base-class", true && "conditional-class")}>
Hello World
</div>
)
}