Skip to content

Commit 5338d10

Browse files
📝 add tw merge to readme
1 parent d01c307 commit 5338d10

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ const rc = require("react-classmate").default;
411411
const { default: rc } = require("react-classmate");
412412
```
413413

414+
## Tailwind Merge
415+
416+
React-classmate uses [tailwind-merge](https://github.com/dcastil/tailwind-merge) under the hood to merge class names. The last class name will always win, so you can use it to override classes.
417+
414418
## Upcoming
415419

416420
- bug / troubleshoot: classnames set by ref.current (useRef) will be overwritten as soon component rerenders

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-classmate",
33
"description": "A react tool to separate class name logic, create variants and manage styles.",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"author": "https://github.com/richard-unterberg",
66
"homepage": "https://react-classmate.dev/",
77
"repository": {

0 commit comments

Comments
 (0)