JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 45
  • Score
    100M100P100Q55339F
  • License ISC

React UI Shared for Paalan UI

Package Exports

  • @paalan/react-shared
  • @paalan/react-shared/constants
  • @paalan/react-shared/lib
  • @paalan/react-shared/system
  • @paalan/react-shared/types
  • @paalan/react-shared/utils

Readme

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');