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

material-expressive-react

v0.2.1

Published

React wrappers for Material 3 Material Web components (@material/web)

Readme

Material 3 Expressive UI React Components

React components inspired by Material 3 Expressive, built on top of the Material 3 Web Components package @material/web.

This library adds custom CSS and animations to make the experience more expressive and to get as close as possible to the feel of Android component motion.

This project follows the official Google Material Design principles and component guidance: https://m3.material.io/components

Developer docs (Storybook)

  • Landing page: https://prudhviraj5.github.io/material-expressive-react/
  • Storybook: https://prudhviraj5.github.io/material-expressive-react/storybook/
  • API Docs (MDX): https://prudhviraj5.github.io/material-expressive-react/docs/

Why this library

Material Web (@material/web) is the official set of Material Design web components. However, there isn't an official, first-class React component library for the Material 3 “Expressive” direction that you can drop into a React app today.

In practice, teams wanting “Material 3 Expressive” in React typically run into a gap:

  • Material Web focuses on the core Material 3 component set, and “Expressive” guidance is still evolving.
  • There’s no official Google-supported React wrapper that tracks the design guidance and exposes ergonomic React APIs.
  • You end up hand-wrapping Custom Elements, dealing with event/prop mismatches, typing, and documentation.

If you want the Material 3 Expressive visual language in React right now, this library is a pragmatic alternative:

  • Use the official Google-authored web components as the underlying implementation.
  • Consume them with ergonomic React components, typed props, and Storybook-based API docs.
  • Keep your app aligned with Material 3 guidance while avoiding the friction of hand-wrapping Custom Elements yourself.

This project also layers in additional styling and motion where needed to better match the Expressive direction and Android-like component animations.

Disclaimer

This project is neither affiliated with, endorsed by, nor supported by Google.

It was built out of necessity after statements from Google managers indicated that Material 3 Expressive for the web is unlikely to be released anytime soon.

Install

npm i material-expressive-react @material/web

Peer dependencies

  • react >= 18
  • react-dom >= 18

Quick start

  1. Ensure you load fonts/icons you want (example uses Roboto + Material Symbols):
<!-- Roboto -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />

<!-- Material Symbols (for <Icon/>) -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],400,0,0" rel="stylesheet" />
  1. Apply Material typography once at app startup:
import {applyMaterialTypography} from 'material-expressive-react/theme';

// If you're in an SSR framework, call this in a client-only place (e.g. useEffect).
applyMaterialTypography();
  1. Use components:
import {Button, Icon} from 'material-expressive-react';

export function App() {
  return (
    <Button onClick={() => console.log('clicked')}>
      <Icon slot="icon">upload</Icon>
      Upload
    </Button>
  );
}

Slots

Many Material Web components use slots (e.g. slot="icon", slot="headline").

import {Button} from 'material-expressive-react/button';
import {Icon} from 'material-expressive-react/icon';

export function SaveButton() {
  return (
    <Button>
      <Icon slot="icon">save</Icon>
      Save
    </Button>
  );
}

Events

Custom Element events don’t always behave like React synthetic events. These wrappers re-emit selected events via addEventListener and expose them as props.

Example (menu close event):

import {Menu, MenuItem} from 'material-expressive-react/menu';

export function ExampleMenu() {
  return (
    <Menu
      anchor="menu-anchor"
      open
      onCloseMenu={() => {
        // close-menu
      }}
    >
      <MenuItem>
        <div slot="headline">Apple</div>
      </MenuItem>
    </Menu>
  );
}

Date / time pickers

This repo includes React-first date/time pickers (not part of @material/web).

import {DatePicker} from 'material-expressive-react/datetime';

export function ExampleDate() {
  return <DatePicker variant="modal" selectionMode="single" onValueChange={(v) => console.log(v)} />;
}

Import patterns (bundle-friendly)

You can import from the root:

import {Button} from 'material-expressive-react';

Or import from a group entrypoint:

import {Button} from 'material-expressive-react/button';
import {Textfield} from 'material-expressive-react/textfield';

SSR / Next.js notes

These components wrap Custom Elements.

  • Render them from client components (or behind a client-only boundary) in SSR frameworks.
  • Element registration happens in the browser via dynamic import.

If you use Next.js App Router, place these imports in a "use client" file.

Roadmap

ToDo

  • [ ] Carousels

Enhance

  • [ ] Loading indicators
  • [ ] TimeRangeComponent
  • [ ] Animations