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

v2.1.1

Published

Cynosure UI — React component library

Downloads

248

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. Behaviour is a hybrid of Radix primitives and React Aria for accessibility; styling is driven by W3C DTCG design tokens from @arshad-shah/cynosure-tokens.

See every component live, with variants, props, and copyable code: cynosure.arshadshah.com


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';
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 primitivesBox, Stack, Inline, Flex, Grid, Center, Spacer, Divider, AspectRatio, Container, Section

TypographyText, Heading, Code, Kbd, Link, Blockquote, List

FormsInput, Textarea, NumberInput, Checkbox, Radio, Switch, Select, Combobox, MultiSelect, Slider, RangeSlider, DatePicker, DateRangePicker, TimePicker, ColorPicker, FileUpload, SearchInput, PinInput, TagsInput, Rating

OverlaysDialog, AlertDialog, Drawer, Popover, HoverCard, Tooltip, Toast, DropdownMenu, ContextMenu, MenuBar

NavigationTabs, Breadcrumb, Pagination, Menu, NavigationMenu, Sidebar, Stepper, Anchor, BackToTop

Data displayCard, Table, DataTable, Tree, Timeline, Stat, LinearProgress, CircularProgress, Skeleton, Spinner, Accordion, Collapsible, ScrollArea, Resizable, CodeBlock

FeedbackBadge, Tag, Chip, Avatar, AvatarGroup, Alert, Banner, Notification, Callout, EmptyState, Toggle, ToggleGroup

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

The full inventory, props reference, and live examples live in the Storybook docs site.


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