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

@bug-on/md3-react

v3.0.0

Published

Material Design 3 Expressive React components

Readme

@bug-on/md3-react

⚠️ Work in progress — Material Design 3 Expressive React Component Library

A high-performance React UI component library built following the Material Design 3 Expressive design language. It brings smooth animations, robust accessibility (a11y), and first-class support for SSR and Next.js App Router.

To function correctly with full access to Design Tokens (colors, typography, shape, elevation) and CSS utilities, the ecosystem is built across 3 core packages:

  • @bug-on/md3-react (Component logic & UI)
  • @bug-on/md3-tailwind (TailwindCSS v4 plugin providing the system's utilities)
  • @bug-on/md3-tokens (Core CSS variables & Design tokens)

📦 Installation

Install the React component package alongside its required core packages:

npm install @bug-on/md3-react @bug-on/md3-tailwind @bug-on/md3-tokens
# or
pnpm add @bug-on/md3-react @bug-on/md3-tailwind @bug-on/md3-tokens

Additionally, ensure you have the required Peer Dependencies installed in your project:

npm install react react-dom
# Optional (Required only if you intend to use animated components like Fab, Tabs, Dialog...):
npm install motion

🛠️ Setup & Configuration

This library relies strictly on Tailwind CSS v4. You must configure both the library's plugin and token system into your Tailwind and global CSS layers.

Add the following to your root CSS file (often globals.css or index.css):

/* 1. Import Tailwind CSS core */
@import "tailwindcss";

/* 2. Inject the MD3 Ecosystem Plugin */
@plugin "@bug-on/md3-tailwind";

/* 3. Import Core CSS Tokens (Color, Shape, Typography, Elevation) */
@import "@bug-on/md3-tokens/index.css";

/* 4. Import specific typography classes explicitly for the React components */
@import "@bug-on/md3-react/typography.css";

Setup Icons (Font Symbol)

The library provides an <Icon /> component using the variable Material Symbols Outlined font. Ensure you load the font stylesheet at the root of your application:

// app/layout.tsx or src/main.tsx
import '@bug-on/md3-react/material-symbols-cdn.css';
import { MaterialSymbolsPreconnect } from '@bug-on/md3-react';

export default function RootLayout({ children }) {
  return (
    <html>
      <head>
        {/* Preconnect resources for significantly faster icon rendering */}
        <MaterialSymbolsPreconnect />
      </head>
      <body>{children}</body>
    </html>
  );
}

(If you need offline support, use the self-hosted alternative by importing @bug-on/md3-react/material-symbols-self-hosted.css)


🚀 Usage

Once the setup is complete, you are ready to use the components!

import { Button, Icon } from '@bug-on/md3-react';

export default function Page() {
  return (
    <div className="p-8 bg-m3-surface min-h-screen">
      <Button colorStyle="filled" size="md" icon={<Icon name="add" />}>
        Get Started
      </Button>
    </div>
  );
}

🧩 Components Available

| Component | Description | |--------------|--------------------------------------------| | Button | MD3 Expressive button, 5 variants, 5 sizes | | IconButton | Icon toggle buttons | | Fab | Floating Action Button | | Tabs | MD3 Tabs (Scrollable, Animating indicator) | | Card | MD3 Card container | | Dialog | Fully Accessible Modal/Dialog component | | Menu | Dropdown menus | | CodeBlock | Syntax-highlighted code block | | Icon | Material Symbols variable font icon |

⚖️ License

MIT