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

@usememos/mui

v0.1.0-20250628111548

Published

React UI component library built with shadcn/ui

Readme

@usememos/mui

A modern React UI component library built with shadcn/ui components, powered by Radix UI primitives and styled with Tailwind CSS.

Features

  • 🎨 Modern Design: Beautiful, accessible components with consistent design patterns
  • High Performance: Optimized components built on Radix UI primitives
  • 🎯 TypeScript: Full TypeScript support with comprehensive type definitions
  • 🌙 Dark Mode: Built-in dark mode support
  • 📱 Responsive: Mobile-first responsive design
  • Accessible: WAI-ARIA compliant components
  • 🔧 Customizable: Easy to customize with Tailwind CSS
  • 📦 Tree Shakable: Import only what you need

Installation

npm install @usememos/mui
# or
yarn add @usememos/mui
# or
pnpm add @usememos/mui

Setup

1. Install Dependencies

Make sure you have the required peer dependencies:

npm install react react-dom

2. Configure Tailwind CSS

Add the package to your tailwind.config.js:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    // ... your content paths
    "./node_modules/@usememos/mui/dist/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};

3. Import Styles

Import the CSS file in your main application file:

import "@usememos/mui/styles";

Usage

import { Button, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@usememos/mui";

function App() {
  return (
    <div className="p-6 space-y-4">
      <Button>Click me</Button>

      <Input placeholder="Enter your email" />

      <Select>
        <SelectTrigger>
          <SelectValue placeholder="Select an option" />
        </SelectTrigger>
        <SelectContent>
          <SelectItem value="option1">Option 1</SelectItem>
          <SelectItem value="option2">Option 2</SelectItem>
        </SelectContent>
      </Select>
    </div>
  );
}

Components

Form Components

All form components support consistent sizing with three size variants:

  • sm: 32px height
  • default: 36px height
  • lg: 40px height

Button

import { Button } from "@usememos/mui";

<Button variant="default" size="default">Default Button</Button>
<Button variant="destructive" size="sm">Small Destructive</Button>
<Button variant="outline" size="lg">Large Outline</Button>

Props:

  • variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
  • size: "sm" | "default" | "lg" | "icon"
  • asChild: boolean - Render as child component

Input

import { Input } from "@usememos/mui";

<Input placeholder="Enter text" />
<Input type="email" placeholder="Email" />
<Input type="password" placeholder="Password" />

Select

import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@usememos/mui";

<Select>
  <SelectTrigger size="default">
    <SelectValue placeholder="Choose an option" />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="react">React</SelectItem>
    <SelectItem value="vue">Vue</SelectItem>
    <SelectItem value="angular">Angular</SelectItem>
  </SelectContent>
</Select>;

SelectTrigger Props:

  • size: "sm" | "default" | "lg"

Textarea

import { Textarea } from "@usememos/mui";

<Textarea placeholder="Enter your message..." />;

Checkbox

import { Checkbox } from "@usememos/mui";

<Checkbox id="terms" />
<label htmlFor="terms">Accept terms and conditions</label>

Switch

import { Switch } from "@usememos/mui";

<Switch id="notifications" />
<label htmlFor="notifications">Enable notifications</label>

Display Components

Badge

import { Badge } from "@usememos/mui";

<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="outline">Outline</Badge>

Dialog

import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@usememos/mui";

<Dialog>
  <DialogTrigger asChild>
    <Button>Open Dialog</Button>
  </DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Dialog Title</DialogTitle>
      <DialogDescription>Dialog description goes here.</DialogDescription>
    </DialogHeader>
  </DialogContent>
</Dialog>;

Tooltip

import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "@usememos/mui";

<TooltipProvider>
  <Tooltip>
    <TooltipTrigger>Hover me</TooltipTrigger>
    <TooltipContent>
      <p>Tooltip content</p>
    </TooltipContent>
  </Tooltip>
</TooltipProvider>;

Navigation Components

Dropdown Menu

import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from "@usememos/mui";

<DropdownMenu>
  <DropdownMenuTrigger asChild>
    <Button variant="outline">Open Menu</Button>
  </DropdownMenuTrigger>
  <DropdownMenuContent>
    <DropdownMenuItem>Profile</DropdownMenuItem>
    <DropdownMenuItem>Settings</DropdownMenuItem>
    <DropdownMenuItem>Logout</DropdownMenuItem>
  </DropdownMenuContent>
</DropdownMenu>;

Sheet

import { Sheet, SheetTrigger, SheetContent, SheetHeader, SheetTitle } from "@usememos/mui";

<Sheet>
  <SheetTrigger asChild>
    <Button>Open Sheet</Button>
  </SheetTrigger>
  <SheetContent>
    <SheetHeader>
      <SheetTitle>Sheet Title</SheetTitle>
    </SheetHeader>
    {/* Sheet content */}
  </SheetContent>
</Sheet>;

Advanced Components

Date Picker

import { DatePicker } from "@usememos/mui";

<DatePicker placeholder="Pick a date" onSelect={(date) => console.log(date)} />;

Calendar

import { Calendar } from "@usememos/mui";

<Calendar mode="single" selected={date} onSelect={setDate} />;

Sidebar

import { Sidebar, SidebarProvider, SidebarTrigger, SidebarContent } from "@usememos/mui";

<SidebarProvider>
  <Sidebar>
    <SidebarContent>{/* Sidebar content */}</SidebarContent>
  </Sidebar>
  <main>
    <SidebarTrigger />
    {/* Main content */}
  </main>
</SidebarProvider>;

Customization

Theming

The components use CSS custom properties for theming. You can customize the theme by overriding these variables:

:root {
  --color-background: oklch(100% 0 0);
  --color-foreground: oklch(23.83% 0.052 265.75);
  --color-primary: oklch(26.06% 0.052 265.75);
  --color-primary-foreground: oklch(97.78% 0.001 247.86);
  /* ... more variables */
}

Dark Mode

Dark mode is supported out of the box. Add the dark class to your root element:

<html class="dark">
  <!-- Your app -->
</html>

Custom Styling

All components accept a className prop for custom styling:

<Button className="my-custom-styles">Custom Button</Button>

Development

Demo App

A demo application is available at /apps/demo showcasing all components:

cd apps/demo
npm run dev

Building

npm run build

License

MIT © usememos