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

@mp-ku/mp-components

v0.1.16

Published

Reusable React component library built with Radix UI primitives and TanStack Form & Tables

Downloads

750

Readme

mpComponents

Tests TypeScript React License: MIT

A modern, accessible React component library built with Radix UI primitives, TanStack Form & Tables, and plain CSS.

📖 Documentation🚀 Quick Start🤝 Contributing📋 Guidelines


📚 Documentation

✨ Features

  • 🔷 Type-Safe Components — Built with TypeScript in strict mode
  • Accessibility First — WCAG 2.1 AA compliant with Radix UI primitives
  • 📊 TanStack Integration — Advanced form and table handling with TanStack Form & Tables
  • 🎨 CSS-Based Styling — Plain CSS with BEM naming convention, no CSS-in-JS
  • 📦 Tree-Shakeable — Clean barrel exports for optimal bundle size
  • 🧪 Well Tested — Comprehensive unit and component tests with Playwright & Vitest
  • 🎯 Developer Experience — Hot reload, TypeScript autocomplete, and extensive documentation

🚀 Installation

# npm
npm install @konradullrich/mp-components

# pnpm
pnpm add @konradullrich/mp-components

# yarn
yarn add @konradullrich/mp-components

Note: This library requires React 19+ as a peer dependency.

📖 Usage

Import components and styles in your React application:

import { Button, Input, Dialog } from "@konradullrich/mp-components";
import "@konradullrich/mp-components/styles";

export function App() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input placeholder="Enter text..." />
      <Dialog>
        <Dialog.Trigger asChild>
          <Button>Open Dialog</Button>
        </Dialog.Trigger>
        <Dialog.Content>
          <Dialog.Title>Welcome</Dialog.Title>
          <Dialog.Description>
            This is a dialog component from mpComponents.
          </Dialog.Description>
        </Dialog.Content>
      </Dialog>
    </div>
  );
}

For more examples and interactive demos, visit the Live Documentation.

📦 Component Categories

Components are organized into logical categories for easy discovery and usage:

common/

General-purpose components

  • Button - Primary action element
  • Badge - Status indicators
  • Icon - Icon wrapper
  • Tooltip - Contextual help
  • Dialog - Modal dialogs
  • Dropdown - Menu dropdowns

controls/

Form elements & inputs

  • Input - Text input fields
  • Select - Dropdown selectors
  • Checkbox - Toggle checkboxes
  • Radio - Radio buttons
  • Toggle - On/off switches

data-display/

Data presentation

  • Table - Data tables
  • List - Item lists
  • Card - Content cards
  • Tree - Hierarchical data

layout/

Page structure

  • Sidebar - Side navigation
  • Header - Page headers
  • Footer - Page footers
  • Navigation - Nav menus

styles/

Global CSS variables, themes, and utility styles for consistent design.

🛠️ Development

Prerequisites

  • Node.js 18+ or 20+
  • pnpm 8+ (recommended) or npm

Setup

Clone the repository and install dependencies:

git clone https://github.com/konradUllrich/componentLibary.git
cd componentLibary
pnpm install

Available Scripts

| Command | Description | | ------------------ | -------------------------------------- | | pnpm build | Build the library for production | | pnpm build:watch | Build in watch mode for development | | pnpm demo | Run the interactive demo site locally | | pnpm demo:build | Build the demo site for deployment | | pnpm lint | Lint all TypeScript and TSX files | | pnpm type-check | Run TypeScript compiler checks | | pnpm test | Run unit tests with Vitest | | pnpm test:ui | Run unit tests with Vitest UI | | pnpm test:ct | Run component tests with Playwright | | pnpm test:ct:ui | Run component tests with Playwright UI | | pnpm test:e2e | Run end-to-end tests |

Demo Site

The demo site showcases all components with interactive examples and comprehensive documentation.

Run locally:

pnpm demo

Build for production:

pnpm demo:build

Router Configuration

The demo site uses TanStack Router with configurable routing modes:

  • URL Mode (default): Traditional routing with clean URLs (e.g., /components/button)
  • Param Mode: Routes stored in URL parameters (e.g., /?route=/components/button)

To use param mode:

VITE_ROUTER_MODE=param pnpm demo

For more details, see demo/ROUTER_CONFIG.md.

📂 Project Structure

mpComponents/
├── common/              # Shared, reusable components (Button, Badge, Icon, etc.)
├── controls/            # Form controls and input components (Input, Select, Checkbox, etc.)
├── data-display/        # Data presentation components (Table, List, Card, etc.)
├── layout/              # Layout components (Sidebar, Header, Footer, etc.)
├── styles/              # Global styles, CSS variables, and theming
├── demo/                # Interactive demo site with all component examples
├── e2e/                 # End-to-end tests
├── docs/                # Generated documentation
├── index.ts             # Main barrel export file
├── package.json         # Package configuration
└── README.md            # This file

🧪 Testing

This library maintains high code quality through comprehensive testing:

  • Component Tests - Playwright component testing with visual and interaction validation
  • Unit Tests - Vitest for logic and utility testing
  • Accessibility Tests - Automated a11y checks using axe-core
  • E2E Tests - Full application flow testing with Playwright

All tests run automatically in CI/CD pipeline on every commit.

Learn more: TESTING.md


🎨 Component Development Guidelines

This library follows strict guidelines to ensure quality, accessibility, and maintainability:

| Guideline | Requirement | | ----------------- | ------------------------------------------------------------------ | | TypeScript | Strict mode enabled - Zero type errors, no any or unknown | | Styling | Plain CSS with BEM naming convention - No CSS modules or CSS-in-JS | | Accessibility | WCAG 2.1 AA compliance required - Full keyboard navigation | | File Size | Components ≤ 100 lines - Split into smaller files if needed | | Radix UI | Use Radix primitives for complex interactive components | | Testing | Playwright component tests with a11y checks required | | Documentation | JSDoc comments and interactive examples required |

📚 Documentation Resources


🤝 Contributing

We welcome contributions! Please read our Contributing Guide before submitting any pull requests.

Before contributing:

  1. ✅ Read the Contributing Guide and Component Guidelines
  2. ✅ Ensure all code passes TypeScript checks (pnpm type-check)
  3. ✅ Follow BEM naming convention for CSS classes
  4. ✅ Meet WCAG 2.1 AA accessibility standards
  5. ✅ Write component tests with accessibility checks
  6. ✅ Keep component files ≤ 100 lines (split if larger)

Quick Links


📄 License

MIT License - see LICENSE for details.

Copyright (c) 2025 Intrexx


💬 Support & Community


Built with ❤️ using ReactRadix UITanStack