npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cisseui/react-components

v1.2.0

Published

Modern React UI components including Table, Modal, Drawer, and PricingTable

Downloads

24

Readme

@cisseui/react-components

A modern React component library featuring Table, Modal, Drawer, and PricingTable components. Built with TypeScript and styled with Tailwind CSS.

📚 Documentation

Table des matières

  1. Installation
  2. Quick Start
  3. Components
  4. Features
  5. Customization
  6. Props
  7. License

📦 Installation

npm install @cisseui/react-components
# or
yarn add @cisseui/react-components
# or
pnpm add @cisseui/react-components

🚀 Quick Start

import { Modal, Drawer, Table, PricingTable } from '@cisseui/react-components';

🛠️ Components

Modal Component

A flexible modal dialog component with customizable content, animations, and backdrop.

import { Modal } from '@cisseui/react-components';

function App() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <>
      <button onClick={() => setIsOpen(true)}>Open Modal</button>
      
      <Modal 
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        title="Example Modal"
      >
        <div className="p-6">
          <h2>Modal Content</h2>
          <p>This is an example modal dialog</p>
        </div>
      </Modal>
    </>
  );
}

Drawer Component

A sliding drawer component that can appear from any edge of the screen.

import { Drawer } from '@cisseui/react-components';

function App() {
  const [isOpen, setIsOpen] = useState(false);

  return (
    <>
      <button onClick={() => setIsOpen(true)}>Open Drawer</button>
      
      <Drawer 
        isOpen={isOpen}
        onClose={() => setIsOpen(false)}
        title="Example Drawer"
        position="right"
      >
        <div className="p-6">
          <h2>Drawer Content</h2>
          <p>This is an example drawer</p>
        </div>
      </Drawer>
    </>
  );
}

Table Component

A modern and flexible table component with support for custom styling, dark mode, and responsive design.

import {
  Table,
  TableHead,
  TableBody,
  TableRow,
  TableCell,
  TableHeadCell,
} from '@cisseui/react-components';

function App() {
  const data = [
    { id: 1, name: 'John Doe', email: '[email protected]', role: 'Admin' },
    { id: 2, name: 'Jane Smith', email: '[email protected]', role: 'User' },
    { id: 3, name: 'Bob Johnson', email: '[email protected]', role: 'User' },
  ];

  return (
    <Table>
      <TableHead>
        <TableRow>
          <TableHeadCell>ID</TableHeadCell>
          <TableHeadCell>Name</TableHeadCell>
          <TableHeadCell>Email</TableHeadCell>
          <TableHeadCell>Role</TableHeadCell>
        </TableRow>
      </TableHead>
      <TableBody>
        {data.map((row) => (
          <TableRow key={row.id}>
            <TableCell>{row.id}</TableCell>
            <TableCell>{row.name}</TableCell>
            <TableCell>{row.email}</TableCell>
            <TableCell>{row.role}</TableCell>
          </TableRow>
        ))}
      </TableBody>
    </Table>
  );
}

PricingTable Component

A flexible pricing comparison table component with multiple layout variants, perfect for SaaS pricing pages.

import { PricingTable, PricingPlan } from '@cisseui/react-components';

function App() {
  const plans: PricingPlan[] = [
    {
      id: 'starter',
      name: 'Starter',
      description: 'Perfect for individuals',
      price: 9,
      period: 'month',
      features: [
        { name: 'Feature 1', included: true },
        { name: 'Feature 2', included: true },
        { name: 'Feature 3', included: false },
      ],
      ctaLabel: 'Get Started',
      ctaAction: () => console.log('Starter selected'),
    },
    {
      id: 'pro',
      name: 'Pro',
      description: 'Best for teams',
      price: 29,
      period: 'month',
      popular: true,
      features: [
        { name: 'Feature 1', included: true },
        { name: 'Feature 2', included: true },
        { name: 'Feature 3', included: true },
      ],
      ctaLabel: 'Start Free Trial',
      ctaAction: () => console.log('Pro selected'),
    },
  ];

  return (
    <PricingTable
      plans={plans}
      variant="cards" // 'table' | 'cards' | 'minimal' | 'featured'
      highlightedPlanId="pro"
      headerTitle="Choose Your Plan"
      headerDescription="Select the perfect plan for your needs"
    />
  );
}

Variants

  • table (default): Classic comparison table with feature rows, perfect for detailed feature comparison
  • cards: Modern card-based layout with side-by-side plans, great for modern websites
  • minimal: Clean and minimal design, ideal for a subtle and elegant look
  • featured: Prominent featured plan at the top with other plans below, perfect for highlighting a recommended plan

Props

PricingTable

| Prop | Type | Default | Description | |------|------|---------|-------------| | plans | PricingPlan[] | - | Array of pricing plans to display | | variant | 'table' | 'cards' | 'minimal' | 'featured' | 'table' | Layout variant | | highlightedPlanId | string | - | ID of the plan to highlight | | className | string | - | Additional CSS classes | | showHeader | boolean | true | Show header section | | headerTitle | string | 'Choose Your Plan' | Header title | | headerDescription | string | - | Header description |

PricingPlan

| Prop | Type | Default | Description | |------|------|---------|-------------| | id | string | - | Unique identifier for the plan | | name | string | - | Plan name | | description | string | - | Plan description | | price | string | number | - | Plan price | | period | string | - | Billing period (e.g., 'month', 'year') | | currency | string | '$' | Currency symbol | | features | PricingFeature[] | - | Array of plan features | | ctaLabel | string | - | Call-to-action button label | | ctaAction | () => void | - | Callback when CTA is clicked | | popular | boolean | false | Mark plan as popular | | badge | string | - | Custom badge text |

PricingFeature

| Prop | Type | Default | Description | |------|------|---------|-------------| | name | string | - | Feature name | | included | boolean | true | Whether feature is included | | value | string | ReactNode | - | Custom value to display instead of checkmark |

Props

Table

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | - | Additional CSS classes | | children | ReactNode | - | Table content |

TableHead

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | - | Additional CSS classes | | children | ReactNode | - | Header content |

TableHeadCell

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | - | Additional CSS classes | | children | ReactNode | - | Cell content |

TableCell

| Prop | Type | Default | Description | |------|------|---------|-------------| | className | string | - | Additional CSS classes | | children | ReactNode | - | Cell content |

✨ Features

  • 🎨 Modern design with Tailwind CSS
  • 🌙 Dark mode support
  • 📱 Responsive and mobile-friendly
  • ♿ Accessible (ARIA compliant)
  • 🔒 TypeScript support
  • 🎯 Zero-dependency (except for React and Tailwind)
  • 🚀 Tree-shakeable
  • 📦 Small bundle size

🎨 Customization

All components can be customized using:

  1. Tailwind Classes: Use the className prop to extend or override default styles
  2. Theme: Components automatically adapt to your Tailwind theme configuration
  3. Props: Each component has specific props for customization

🔧 Props

Modal

| Prop | Type | Default | Description | |------|------|---------|-------------| | isOpen | boolean | false | Controls the visibility of the modal | | onClose | () => void | - | Callback when modal is closed | | title | string | - | Modal title | | children | ReactNode | - | Modal content | | size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Modal size |

Drawer

| Prop | Type | Default | Description | |------|------|---------|-------------| | isOpen | boolean | false | Controls the visibility of the drawer | | onClose | () => void | - | Callback when drawer is closed | | title | string | - | Drawer title | | children | ReactNode | - | Drawer content | | position | 'left' | 'right' | 'top' | 'bottom' | 'right' | Drawer position | | size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Drawer size |

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.