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

@wearenotch/ui-react

v0.4.0

Published

React components for the Notch Design System

Downloads

180

Readme

@wearenotch/ui-react

React components for the Notch Design System.

Install

pnpm add @wearenotch/ui-react @wearenotch/tokens
# or
npm install @wearenotch/ui-react @wearenotch/tokens

react and react-dom (>=19) are peer dependencies.

On React 18? Pin to the 0.3.x line: "@wearenotch/ui-react": "~0.3.2". Versions 0.4.0+ require React 19 — see the migration note below.

Usage

Import the tokens stylesheet once in your app entry, then use components anywhere:

// app entry (e.g. src/main.tsx)
import '@wearenotch/tokens/css';
import '@wearenotch/ui-react/css';
import { Button, Input, FormField } from '@wearenotch/ui-react';

export function SignIn() {
  return (
    <form>
      <FormField label="Email" htmlFor="email">
        <Input id="email" type="email" />
      </FormField>
      <Button variant="primary" type="submit">Sign in</Button>
    </form>
  );
}

Dark mode

Dark mode is CSS-only — toggle the data-theme attribute on <html>:

document.documentElement.setAttribute('data-theme', 'dark');

No JavaScript color switching, no provider — every component reads tokens that respond to data-theme="dark".

Components

35 components covering primitives, forms, feedback, navigation, layout, and data display:

Primitives Button, IconButton, Badge, Tag, Avatar, Spinner, Skeleton, Tooltip Forms Input, Textarea, Select, MultiSelect, Checkbox, Switch, Slider, FormField, FileUpload, DatePicker, RichTextEditor Feedback Alert, Notification, ProgressBar, EmptyState Navigation Tabs, Accordion, Breadcrumbs, Pagination, Stepper Layout Card, Modal, List, Carousel Data display Table, Chart

Conventions

  • All components forward refs where applicable and spread unknown HTML attributes onto their root element.
  • Sizes use sm | md | lg.
  • Form controls expose value / onChange and accept id, name, disabled, etc.
  • Every interactive component has an accessible name — pass a visible label or aria-label.

Storybook

Browse all components and variants:

pnpm --filter @notch/storybook dev
# http://localhost:6006

Migrating from 0.3.x (React 18)

Version 0.4.0 bumps the React peer dependency to >=19.0.0 and adopts the React 19 ref-as-prop pattern internally. No code changes are required in consumer apps*Props interfaces are unchanged. The break is purely at the peer dependency level.

To migrate:

  1. Upgrade your app to React 19 (react, react-dom, @types/react, @types/react-dom).
  2. Bump @wearenotch/ui-react to ^0.4.0.
  3. If you were doing forwardRef-style ref forwarding around our components, that still works — ref is now a regular prop and is forwarded automatically.

If you can't upgrade React yet, stay on ~0.3.2. We will not backport new features to 0.3.x, but security fixes will land there if needed.

Scripts

pnpm --filter @wearenotch/ui-react build       # build dist/
pnpm --filter @wearenotch/ui-react test        # run vitest
pnpm --filter @wearenotch/ui-react type-check  # tsc --noEmit

License

MIT