@paalan/react-shared
TypeScript icon, indicating that this package has built-in type declarations

1.4.11 • Public • Published

Paalan React UI shared utils

This package contains the shared utils for the Paalan React UI.

Installation

npm install @paalan/react-shared

Usage

  • Import the shared utils from the package and use them in your project.
import { cn } from '@paalan/react-shared/lib';

// button primary disabled
const className = cn('button', 'bg-primary', { disabled: true });

// button primary
const className = cn('button', 'bg-primary', { disabled: false });

// button primary disabled custom
const className = cn('button', 'bg-primary', { disabled: true }, 'custom');

Package Sidebar

Install

npm i @paalan/react-shared

Weekly Downloads

26

Version

1.4.11

License

ISC

Unpacked Size

21.8 MB

Total Files

338

Last publish

Collaborators

  • paalamugan