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

@labmgm/react

v0.1.4

Published

The core MGM Laboratory React component library — buttons, cards, modals, navigation, feedback, and more. Bundled with Radix UI, Framer Motion, and every dep you need.

Downloads

51

Readme

@labmgm/react

The core MGM Laboratory React component library.

npm version license

Buttons, cards, dialogs, navigation, feedback, layout — everything you need for a product or marketing surface. Radix UI, Lucide, Framer Motion, Tailwind, and a fully-tokenized theme are bundled — no second UI library to install.

pnpm add @labmgm/react @labmgm/tokens @labmgm/tailwind-config

Storybook · Source · Monorepo root


Two ways to ship styles

// tailwind.config.ts
import preset from '@labmgm/tailwind-config';

export default {
  presets: [preset],
  content: ['./src/**/*.{ts,tsx}', './node_modules/@labmgm/*/dist/**/*.{js,mjs}'],
};
// root layout
import '@labmgm/tokens/tokens.css';
import '@labmgm/react/styles.css';

styles.css deliberately excludes Tailwind Preflight and global body styles, so it can be imported alongside a Tailwind 4 application without competing resets.


Quick example

import {
  Container,
  Section,
  Stack,
  Button,
  Card,
  CardHeader,
  CardTitle,
  CardContent,
} from '@labmgm/react';

export default function Home() {
  return (
    <Section tone="muted" padding="lg">
      <Container>
        <Stack gap={6}>
          <h1 className="text-display-lg">
            Build the <span className="text-brand-red">loud</span> internet.
          </h1>
          <Card>
            <CardHeader>
              <CardTitle>Out of the box</CardTitle>
            </CardHeader>
            <CardContent>No extra setup.</CardContent>
          </Card>
          <Button size="lg">Get started</Button>
        </Stack>
      </Container>
    </Section>
  );
}

Component catalog

Open the Storybook for live examples of every component and every variant.

| Category | Components | | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Buttons & actions | Button · IconButton · ButtonGroup · ToggleButton · ToggleButtonGroup · Link · Kbd · CopyButton · BackButton | | Display | Card (+ Header/Title/Description/Content/Footer) · Badge · Tag · Chip · Avatar · AvatarGroup · Stat · Empty · Skeleton · Spinner · Code · CodeBlock | | Overlays | Dialog · AlertDialog · Drawer · Popover · HoverCard · Tooltip · DropdownMenu · ContextMenu | | Navigation | Tabs · Accordion · Breadcrumb · Pagination · Stepper · Navbar | | Feedback | Alert · Banner · Progress · ProgressCircle · Callout | | Data display | List · DescriptionList · Timeline · Separator | | Media | Image · Carousel | | Layout (from @labmgm/layout, re-exported) | Container · Section · Stack · VStack · HStack · Grid · Flex · Box · Center · Spacer · AspectRatio · Divider | | Brand (from @labmgm/brand, re-exported) | Logo · Wordmark · ShapeSignature · FooterStrip | | Theme (from @labmgm/theme, re-exported) | ThemeProvider · Surface · useSurface | | Patterns (from @labmgm/patterns, re-exported) | PatternGrid · PatternTile · PatternCorner · PatternBanner · PatternDado · PatternStrip · PatternPyramid · PatternTriangle |

Specialized packages live separately:


Surface tones

<Section tone="default">…</Section>   // white / ink
<Section tone="muted">…</Section>     // off-white / ink
<Section tone="inverse">…</Section>   // dark / light, child components flip automatically

Self-contained surfaces (Card, Dialog, Popover, Alert, Callout, Toast, Drawer, DropdownMenu, HoverCard, ContextMenu) automatically reset to data-surface="default" so they read correctly even when nested inside a dark Section. Tooltip stays dark by design.


Brand rules quick reference

  • Closed palette. No purple, teal, pink, or orange. Brand colors: brand-blue, brand-yellow, brand-red, brand-green.
  • Stroke-only icons at 2.25 stroke width, 16 / 20 / 24 px (use @labmgm/icons or lucide-react).
  • Typography: Bricolage Grotesque (display), Geist (UI), Geist Mono (code). No substitutes.
  • One display per page. Inner sections start at h1 or smaller.
  • The full spec lives in DESIGN_SYSTEM.md.

License

MIT © MGM Laboratory