Skip to content

Commit cea0b67

Browse files
committed
docs: add nested classNames example to README
1 parent ffe199b commit cea0b67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ type Status = "idle" | "loading" | "error"
2323
const status: Status = "loading" // String literal union
2424

2525
// ✅ Automatically ignored - styling props, constants, and numeric strings
26-
<Box containerClassName="flex items-center" /> // *ClassName, *Class, *Color, etc.
27-
<div className={clsx("px-4", "py-2")} /> // className utilities (cx, clsx, etc.)
26+
<Box containerClassName="flex items-center" /> // *ClassName, *Color, *Style, etc.
27+
<div className={clsx("px-4", "py-2")} /> // className utilities (clsx, cn, etc.)
28+
<Calendar classNames={{ day: "bg-white" }} /> // nested classNames objects
2829
const STATUS_COLORS = { active: "bg-green-100" } // *_COLORS, *_CLASSES, etc.
2930
const price = "1,00€" // No letters = technical
3031

0 commit comments

Comments
 (0)