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

1.0.1 • Public • Published

Classtr

Lightweight function to generate React className string

Install

yarn

yarn add classtr

npm

npm install classtr --save

Usage

import cs from 'classtr';

cs([
  'button',
  true ? 'border' : null,
  false ? 'shadow': null,
]);
// output: 'button border'

Package Sidebar

Install

npm i classtr

Weekly Downloads

32

Version

1.0.1

License

MIT

Unpacked Size

1.16 kB

Total Files

4

Last publish

Collaborators

  • sanderheling