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

@jerryshim-ui/drawer

v0.1.0

Published

A headless, accessible Drawer (Sheet) components built on top of `@radix-ui/react-dialog`.

Downloads

1

Readme

@jerryshim-ui/drawer

A headless, accessible Drawer (Sheet) components built on top of @radix-ui/react-dialog.

Installation

pnpm add @jerryshim-ui/drawer @jerryshim-ui/tailwind-util

Quick Start

import {
  Sheet,
  SheetTrigger,
  SheetContent,
  SheetHeader,
  SheetFooter,
  SheetTitle,
  SheetDescription,
  SheetClose,
} from '@jerryshim-ui/drawer';

export default function Example() {
  return (
    <Sheet>
      <SheetTrigger className="btn">Open</SheetTrigger>
      <SheetContent side="right" animate="slide" radius="lg">
        <SheetHeader>
          <SheetTitle>Title</SheetTitle>
          <SheetDescription>Description</SheetDescription>
        </SheetHeader>
        <div className="py-4">Body</div>
        <SheetFooter>
          <SheetClose className="btn">Close</SheetClose>
        </SheetFooter>
      </SheetContent>
    </Sheet>
  );
}

Theme integration (brief)

This component uses token utility classes (bg-theme-…, text-theme-…). In your app, generate and import theme CSS via @jerryshim/theme-builder.

  1. Install the theme builder and add scripts
pnpm add -D @jerryshim/theme-builder

package.json

{
  "scripts": {
    "theme:dep": "jerry-theme-build dep-sync",
    "theme:sync": "jerry-theme-build sync",
  },
}
  1. Add a minimal jerry-theme.config.js at project root
// jerry-theme.config.js
export default {
  outputDir: 'src/styles/jerry-theme',
  palettes: [
    {
      colorName: 'blue',
      base: { option: 'all', p3: true, theme: true },
      alpha: { option: 'all', p3: true, theme: true },
    },
    {
      colorName: 'slate',
      base: { option: 'all', p3: true, theme: true },
      alpha: { option: 'all', p3: true, theme: true },
    },
    { colorName: 'mono', alpha: { option: 'all', p3: true, 'reverse-theme': true } },
  ],
};
  1. Merge dependency theme configs (optional)
pnpm run theme:dep
  1. Generate theme files and import in your app
pnpm run theme:sync
// e.g., in src/main.tsx or your global style entry
@import '@jerryshim-ui/tailwind-util';
@import '@jerryshim-ui/drawer/preset.css';
@import './styles/jerry-theme/all-colors-only.css';

Build

Built with @jerryshim/builder. Ships dual ESM/CJS exports and TypeScript declarations.


API

All components re-export and wrap @radix-ui/react-dialog primitives with styling and variants.

Sheet

  • Root component. Controls open/close state.

SheetTrigger

  • Button or element that opens the sheet.

SheetContent

  • Props:
    • side: 'top' | 'bottom' | 'left' | 'right' (default: 'right')
    • animate: 'slide' | 'none' (default: 'slide')
    • radius: 'none' | 'sm' | 'md' | 'lg' (default: 'lg')
    • close: boolean (default: true) – whether to render the close button at top-right.

SheetHeader

  • Layout wrapper for title/description.

SheetFooter

  • Footer wrapper; reversed on mobile and horizontal on desktop.

SheetTitle

  • Title text.

SheetDescription

  • Description text.

SheetOverlay

  • Full-screen overlay.

SheetPortal

  • Portal wrapper used by content.

SheetClose

  • Closes the sheet when interacted with.

Styling and classes

  • Uses Tailwind-like utility classes. Ensure your design tokens/utilities are available.
  • SheetContent sets placement, animation, and optional rounded corners.

Accessibility

  • Built upon Radix Dialog: focus trapping, aria attributes, and keyboard interactions are handled.

TypeScript

  • All components are typed; SheetContent exposes variant props.

License

MIT