@tinyfe/classnames

classnames

Usage no npm install needed!

<script type="module">
  import tinyfeClassnames from 'https://cdn.skypack.dev/@tinyfe/classnames';
</script>

README

@tinyfe/classnames

The useful utility for making scoped classname.

Usage

import { prefix, classnames } from '@tinyfe/classnames';

classnames(1, 'info', ['rain120', { FEer: true }], {
  react: true,
  vue: false,
}); // 1 info rain120 FEer react

prefix('RAINY__')(1, 'info', ['rain120', { FEer: true }], {
  react: true,
  vue: false,
}); // RAINY__1 RAINY__info RAINY__rain120 RAINY__FEer RAINY__react