This is a convenience wrapper around tailwind-merge
and clsx
.
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";
- 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.