@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"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    2

Package Sidebar

Install

npm i @bansal/cn

Weekly Downloads

2

Version

0.0.0

License

MIT

Unpacked Size

1.09 kB

Total Files

3

Last publish

Collaborators

  • bansal