@bansal/cn

0.0.0 • Public • Published

@bansal/cn

An utility function to merge tailwindcss classes. Borrowed from @shadcn/ui

install

npm install @bansal/cn

Usage

import { cn } from "@bansal/cn";
const className = cn(
  "flex justify-start items-center p-0",
  "justify-between items-start",
  "p-4"
);
// className = "flex justify-between items-start p-4"

Package Sidebar

Install

npm i @bansal/cn

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

1.09 kB

Total Files

3

Last publish

Collaborators

  • bansal