We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66de860 commit 47eafb0Copy full SHA for 47eafb0
README.md
@@ -6,7 +6,25 @@
6
[![JSDocs][jsdocs-src]][jsdocs-href]
7
[![License][license-src]][license-href]
8
9
-`cn` function - merge class names using clsx and tailwind-merge
+Just `cn` function ! Merge class names using clsx and tailwind-merge
10
+
11
+## Qucik start
12
13
+```bash
14
+pnpm add classname-merge
15
+```
16
17
+```tsx
18
+import { cn } from 'classname-merge'
19
20
+const isRed = true
21
22
+function app() {
23
+ return (
24
+ <div className={cn('bg-blue-500', isRed && 'text-red-500')} />
25
+ )
26
+}
27
28
29
## License
30
0 commit comments