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

0.1.1 • Public • Published

Recn npm bundle size (minified + gzip)

Blazing fast. Tiny size. The last one className helper.

Usage

npm i -S recn

import { cn } from 'recn';
 
const cat = cn('Cat');
 
cat(); // Cat
cat({ size: 'm' }); // Cat_size_m
cat('Tail'); // Cat-Tail
cat('Tail', { length: 'small' }); // Cat-Tail_length_small
 
const dogPaw = cn('Dog', 'Paw');
 
dogPaw(); // Dog-Paw
dogPaw({ color: 'black', exists: true }); // Dog-Paw_color_black Dog-Paw_exists

License MIT

Package Sidebar

Install

npm i recn

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

17.2 kB

Total Files

27

Last publish

Collaborators

  • awinogradov