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

@arshad-shah/cynosure-react

v3.5.0

Published

Cynosure UI — React component library

Readme

@arshad-shah/cynosure-react

React component library for Cynosure UI — headless-at-the-core, themed-on-top, pay-for-what-you-import.

npm license bundle types react

Every component ships as its own ESM entry point with its own CSS, so bundlers keep only what you use. Toggles, switches, accordions, tabs, collapsibles, checkboxes, radios, avatars, Slot/asChild, the direction provider, scroll area, tooltip, hover card, popover, dialog, drawer, and alert dialog are owned in-tree (backed by two small shared kits — useFloatingPosition for anchored overlays and useDialog for modal focus-trap + scroll lock). Calendars and other locale-aware controls lean on react-aria-components. Only the menu family (DropdownMenu, ContextMenu, MenuBar, NavigationMenu) still wraps Radix; migration is in flight. Styling is driven by W3C DTCG design tokens from @arshad-shah/cynosure-tokens.


Install

npx cynosure init

or manually:

pnpm add @arshad-shah/cynosure-react @arshad-shah/cynosure-tokens

Peer requirements: React 18 or 19 (react, react-dom). react-hook-form@^7 is an optional peer for the forms adapter.


Set up

One CSS import (includes tokens + dark + component styles), one provider:

import '@arshad-shah/cynosure-react/all.css';
// Optional — registers Geist + JetBrains Mono Variable.
// Skip to fall through to system fonts.
import '@arshad-shah/cynosure-react/fonts.css';
import { CynosureProvider, Button } from '@arshad-shah/cynosure-react';

export default function App() {
  return (
    <CynosureProvider>
      <Button>Get started</Button>
    </CynosureProvider>
  );
}

Prefer granular control? The legacy three-import path is still exported:

import '@arshad-shah/cynosure-tokens/css';
import '@arshad-shah/cynosure-tokens/css/dark';
import '@arshad-shah/cynosure-react/styles.css';

Per-component imports

Every component has a subpath export for minimum bundle size:

import { Button } from '@arshad-shah/cynosure-react/button';
import { Dialog } from '@arshad-shah/cynosure-react/dialog';
import { DataTable } from '@arshad-shah/cynosure-react/data-table';

The subpath entry imports only that component's code and CSS — no barrel-file fallout.


Bundle sizes

Brotli-compressed per-component budgets (full table in root README.md):

| Component | Size | Component | Size | | --- | ---: | --- | ---: | | Box, Stack, Flex, Grid | 3 kB | Button | 6 kB | | Text, Heading | 4 kB | Input, Textarea | 8 kB | | Dialog, Tooltip, Drawer | 18 kB | Tabs | 14 kB | | Select | 55 kB | Combobox | 58 kB | | DatePicker | 70 kB | DataTable | 60 kB |

Enforced by pnpm size in CI.


Server Components

This package works with React Server Components. Structural pieces (Box, Stack, Card, Text, …) render inside Server Components; stateful pieces (Button, form controls, overlays) go inside a 'use client' boundary. See the RSC compatibility matrix for the full breakdown and a Next.js App Router recipe.


What's inside

Layout primitives — Box, Stack, Inline, Flex, Grid, Center, Spacer, Divider, AspectRatio, Container, Section

Typography — Text, Heading, Code, Kbd, Link, Blockquote, List, Mark (+ HighlightedText)

Buttons — Button, IconButton, ButtonGroup, Toggle, ToggleGroup

Forms — Input, Textarea, NumberInput, SearchInput, PinInput, TagsInput, Checkbox, CheckboxGroup, Radio, RadioGroup, Switch, Select, MultiSelect, Combobox, Slider, RangeSlider, Rating, Calendar, DatePicker, DateRangePicker, TimePicker, ColorPicker, FileUpload, Label, HelperText, ErrorText, Fieldset

Overlays — Dialog, AlertDialog, Drawer, Popover, HoverCard, Tooltip, Toast, DropdownMenu, ContextMenu, MenuBar, CommandPalette

Navigation — Tabs, Breadcrumb, Pagination, Menu, NavigationMenu, Sidebar, Stepper, Anchor, BackToTop

Data display — Card, Table, DataTable, Tree, Timeline, Stat, LinearProgress, CircularProgress, Skeleton, Spinner, Accordion, Collapsible, ScrollArea, Resizable, CodeBlock, Carousel, Chart

Feedback — Badge, Tag, Chip, Avatar, AvatarGroup, Alert, Notification, Callout, EmptyState

Form composition — Form, FormField, FormLabel, FormControl, FormDescription, FormMessage, plus an RHF adapter at @arshad-shah/cynosure-react/rhf

The list above is hand-curated for readability. The machine-readable, always-up-to-date inventory lives at the repo root in components.config.mjs — every published subpath export is one row there. Props references and live examples live at cynosure.arshadshah.com.


Themes

Drop-in theme presets from @arshad-shah/cynosure-themes:

import '@arshad-shah/cynosure-themes/terminal';
import '@arshad-shah/cynosure-themes/high-contrast';

Or build your own by overriding the token CSS variables — see Custom themes.


Links

License

MIT © Arshad Shah