@jakxz/tw-classnames
v1.2.3
Published
This is a convenience wrapper around [`tailwind-merge`](https://npm.im/tailwind-merge) and [`clsx`](https://npm.im/clsx).
Downloads
13,346
Readme
@jakxz/tw-classnames
This is a convenience wrapper around tailwind-merge
and clsx
.
Usage
import { classNames } from "@jakxz/tw-classnames";
// OR
import howeveryouwannanameit from "@jakxz/tw-classnames";
You can also use twMerge
directly as needed:
import { twMerge } from "@jakxz/tw-classnames";
Contributing & Releasing
- Fork it ( https://github.com/jakxz/tw-classnames/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
), do not modify the version inpackage.json
- Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
The PR will be squash merged following the conventional commits spec.
We use npx standard-version -a
to generate the CHANGELOG and version update according to the commits.