Skip to content

JaKXz/tw-classnames

Repository files navigation

@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

  1. Fork it ( https://github.com/jakxz/tw-classnames/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature'), do not modify the version in package.json
  4. Push to the branch (git push origin my-new-feature)
  5. 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.