Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maphel committed Sep 3, 2023
1 parent 81eef2d commit 090a626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maphel/classnames",
"version": "0.0.2",
"version": "1.0.0",
"description": "A utility for generating class names",
"main": "./dist/classnames/index.js",
"types": "./dist/classnames/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const conditionalResult = classNames(
'base-class',
{ 'enabled': isEnabled, 'hidden': isHidden }
); // Output: "base-class enabled"

// With array
const arrayResult = classNames(['base-class', 'base-class2']]); // Output: "base base2"
```

## Contributing
Expand Down

0 comments on commit 090a626

Please sign in to comment.