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

@yuanzong/mui

v1.5.0

Published

Custom MUI components

Downloads

141

Readme

@yuanzong/mui

Custom Material UI helpers for Create & Learn projects. This package bundles a handful of common patterns: confirmation dialogs, responsive modals, lazy-loaded accordions, and a curated timezone picker.

Installation

npm install @yuanzong/mui @mui/material @mui/icons-material react react-dom

Optionally include the baseline CSS reset if you want the bundled typography and link styles:

import '@yuanzong/mui/baseline.css';

Components

ConfirmationModal

A small dialog with cancel/submit actions.

import { ConfirmationModal } from '@yuanzong/mui';

function DeleteUserDialog({ open, onClose, onConfirm, loading }: Props) {
  return (
    <ConfirmationModal
      open={open}
      onClose={onClose}
      onSubmit={onConfirm}
      loading={loading}
      submitLabel="Delete"
    >
      Are you sure you want to delete this user?
    </ConfirmationModal>
  );
}

Key props:

  • onClose: closes the dialog
  • onSubmit: submit action handler
  • loading: disables the submit button and shows its loading state
  • cancelLabel / submitLabel: override button text
  • Accepts other Dialog props except onClose

ResponsiveModal

A dialog that automatically switches to full-screen on small viewports.

import { ResponsiveModal } from '@yuanzong/mui';

<ResponsiveModal open={open} onClose={handleClose} title="Edit profile">
  {/* modal body */}
</ResponsiveModal>;

LazyLoader

An accordion that triggers a callback when first expanded and shows a loading bar until content is ready.

import { LazyLoader } from '@yuanzong/mui';

<LazyLoader
  summary="Show details"
  loading={isFetching}
  onExpanded={fetchData}
  actions={<Button onClick={refresh}>Refresh</Button>}
>
  {content}
</LazyLoader>;

Supports select Accordion props: square, elevation, variant, and sx.

TimezonePicker

Autocomplete dropdown backed by a curated list of timezones.

import { TimezonePicker, zones } from '@yuanzong/mui';

<TimezonePicker
  defaultZone="America/New_York"
  setTimezone={(zone) => console.log(zone.tzCode)}
  label="Timezone"
  fullWidth
/>;

Details:

  • defaultZone defaults to America/Los_Angeles when omitted or null
  • setTimezone receives { tzCode, name }
  • Additional TextField props like label, placeholder, helperText, etc. are supported
  • The zones array and Zone type are exported if you need to reuse or filter the list

Scripts

  • npm run build – build the distributable bundle
  • npm run lint – lint with Biome
  • npm run typecheck – TypeScript type check

License

MIT © Yuanzong Qiu