classfix
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

classFix

Utility designed to facilitate the manipulation and management of class names in React environments.

Installation

Install classfix with npm

npm install classfix

Usage Valid

import classFix from "classfix";

function App() {
  return (
    <Component className={classFix(["text-md", "xl:text-md", "2xl:text-xl"])} />
  );
}

Usage Invalid

import classFix from "classfix";

function App() {
  return (
    <Component className={classFix(["class1", "class with space", "class3"])} />
  );
}

Screenshots

Usage Screenshot

Using Tailwind CSS IntelliSense

The main use has been with React and also with Tailwind.

We recommend the use of the extension Tailwind CSS IntelliSense CSS IntelliSense

License

MIT

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i classfix

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.96 kB

    Total Files

    9

    Last publish

    Collaborators

    • carmelocampos