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

@monbits/ui

v0.10.0

Published

A React UI component library built on [shadcn/ui](https://ui.shadcn.com/) patterns with Radix UI primitives and Tailwind CSS v4.

Readme

@monbits/ui

A React UI component library built on shadcn/ui patterns with Radix UI primitives and Tailwind CSS v4.

Installation

npm install @monbits/ui

Peer Dependencies

Install the required peer dependencies:

npm install react react-dom lucide-react next-themes react-hook-form zod

That's it. Radix UI and other dependencies are bundled with the package.

Tailwind CSS v4 Configuration

Add the @source directive to your CSS file to scan the package for Tailwind classes:

@import "tailwindcss";

@source "../node_modules/@monbits/ui/src";

The path is relative to your CSS file. For a typical setup with CSS at src/app.css, use ../node_modules/... to reach node_modules/ at the project root.

Usage

import { Button, Card, CardHeader, CardTitle, CardContent } from "@monbits/ui";

function App() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Welcome</CardTitle>
      </CardHeader>
      <CardContent>
        <Button>Click me</Button>
      </CardContent>
    </Card>
  );
}

Utilities

import { cn } from "@monbits/ui";

// Merge Tailwind classes intelligently
<div className={cn("p-4", isActive && "bg-primary")} />

Variant Functions

import { buttonVariants } from "@monbits/ui";

// Apply button styles to any element
<a href="/home" className={buttonVariants({ variant: "outline", size: "sm" })}>
  Home
</a>

Components

| Component | Description | |-----------|-------------| | Alert | Callout for important messages | | Avatar | User avatar with fallback | | Badge | Status indicator | | Breadcrumb | Navigation trail | | Button | Interactive button with variants | | Calendar | Date picker | | Card | Content container | | Checkbox | Checkbox input | | DataTable | Data table with pagination | | Descriptions | Key-value display | | Dialog | Modal overlay | | Drawer | Bottom sheet (mobile-friendly) | | DropdownMenu | Context menu | | Field | Form field wrapper | | FilterBuilder | Linear-style filter chips | | Form | Form with react-hook-form | | Icons | Icon set (lucide-react) | | Input | Text input | | InputOTP | One-time password input | | Label | Form label | | Popover | Floating overlay | | Select | Dropdown select | | Separator | Visual divider | | Sheet | Side panel | | Sidebar | App sidebar | | Skeleton | Loading placeholder | | Sonner | Toast notifications | | Spinner | Loading indicator | | Switch | Toggle switch | | Table | Data table | | Tabs | Tabbed interface | | Textarea | Multi-line input | | Toggle | Toggle button | | Tooltip | Hover tooltip |

Hooks

| Hook | Description | |------|-------------| | useFilterBuilder | Filter state with URL sync | | useMobile | Detect mobile viewport | | useUrlPagination | URL-based pagination | | useUrlState | Sync state with URL params | | useWindowSize | Track window dimensions |

Theming

Override CSS variables in your stylesheet:

:root {
  --primary: oklch(0.6 0.25 260);
  --radius: 0.5rem;
}

.dark {
  --primary: oklch(0.7 0.2 260);
}

Available Variables

  • --background, --foreground
  • --card, --card-foreground
  • --primary, --primary-foreground
  • --secondary, --secondary-foreground
  • --muted, --muted-foreground
  • --accent, --accent-foreground
  • --destructive
  • --border, --input, --ring
  • --radius

Dark Mode

Use next-themes to toggle dark mode:

import { ThemeProvider } from "next-themes";

<ThemeProvider attribute="class" defaultTheme="system">
  <App />
</ThemeProvider>

License

Apache 2.0