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

@sigil-ui/primitives

v2.0.0

Published

Headless behavior primitives for Sigil UI — Radix for core components, Base UI for extended primitives

Readme

@sigil-ui/primitives

40+ headless behavior primitives for Sigil UI. Re-exports Radix UI (28 families) and Base UI (13 families) under a unified *Primitive naming convention. Provides accessible, unstyled interaction patterns that @sigil-ui/components consumes for its styled components.

Role in the System

@sigil-ui/primitives   →  behavior (keyboard, focus, aria, state)
@sigil-ui/tokens       →  appearance (colors, spacing, radius, motion)
@sigil-ui/components   →  combines both into styled, token-driven components

Primitives handle the hard accessibility and interaction logic. Tokens handle the visual design. Components wire them together. When an agent wants to change how something looks, it edits tokens. When it wants to change how something behaves, it works with primitives.

Installation

pnpm add @sigil-ui/primitives

Peer dependencies: react, react-dom

Included Primitives (28)

| Primitive | Radix Source | Purpose | |-----------|-------------|---------| | AccordionPrimitive | @radix-ui/react-accordion | Collapsible content sections | | AlertDialogPrimitive | @radix-ui/react-alert-dialog | Confirmation dialog with required action | | AspectRatioPrimitive | @radix-ui/react-aspect-ratio | Constrained aspect ratio container | | AvatarPrimitive | @radix-ui/react-avatar | User avatar with fallback | | CheckboxPrimitive | @radix-ui/react-checkbox | Checkbox with indeterminate state | | CollapsiblePrimitive | @radix-ui/react-collapsible | Expandable/collapsible content | | ContextMenuPrimitive | @radix-ui/react-context-menu | Right-click context menus | | DialogPrimitive | @radix-ui/react-dialog | Modal dialog with focus trap | | DropdownMenuPrimitive | @radix-ui/react-dropdown-menu | Dropdown menus with submenus | | HoverCardPrimitive | @radix-ui/react-hover-card | Hover-triggered card popover | | LabelPrimitive | @radix-ui/react-label | Accessible form labels | | MenubarPrimitive | @radix-ui/react-menubar | Horizontal menu bar with submenus | | NavigationMenuPrimitive | @radix-ui/react-navigation-menu | Site navigation with submenus | | PopoverPrimitive | @radix-ui/react-popover | Positioned popover content | | ProgressPrimitive | @radix-ui/react-progress | Progress bar with aria | | RadioGroupPrimitive | @radix-ui/react-radio-group | Radio button group | | ScrollAreaPrimitive | @radix-ui/react-scroll-area | Custom scrollbars | | SelectPrimitive | @radix-ui/react-select | Select dropdowns | | SeparatorPrimitive | @radix-ui/react-separator | Visual/semantic separator | | SliderPrimitive | @radix-ui/react-slider | Range slider | | Slot | @radix-ui/react-slot | Merges props onto child element | | SwitchPrimitive | @radix-ui/react-switch | Toggle switch | | TabsPrimitive | @radix-ui/react-tabs | Tab navigation | | ToastPrimitive | @radix-ui/react-toast | Timed notification toasts | | TogglePrimitive | @radix-ui/react-toggle | Two-state toggle button | | ToggleGroupPrimitive | @radix-ui/react-toggle-group | Group of toggle buttons | | ToolbarPrimitive | @radix-ui/react-toolbar | Toolbar with buttons, toggles, links | | TooltipPrimitive | @radix-ui/react-tooltip | Hover/focus tooltips |

Usage

import { DialogPrimitive, TabsPrimitive } from "@sigil-ui/primitives";

Or import a specific primitive:

import * as Dialog from "@sigil-ui/primitives";

For AI Agents

  • Do not style primitives directly. They are unstyled building blocks. Style them through @sigil-ui/components which applies token-driven CSS.
  • Use primitives when building new compound components that need accessibility patterns not covered by existing Sigil components.
  • All interaction behavior lives here — keyboard navigation, focus management, ARIA attributes, screen reader support.
  • Visual appearance lives in the token layer, not here.