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

@nayan-ui/react

v2.0.0

Published

React Component Library for smooth and faster web application development.

Readme

Nayan UI for React

React Component Library built on HeroUI and Tailwind CSS v4 for smooth and faster web application development.

npm version TypeScript License


Features

  • 50+ high-quality React components out of the box
  • Built on HeroUI with Tailwind CSS v4 design tokens
  • Written in TypeScript with predictable static types
  • Built-in dark mode with seamless switching
  • Server-side rendering support (Next.js, Remix, etc.)
  • Cross-platform compatibility for modern browsers, Electron, and Tauri

Installation

npm install @nayan-ui/react

Peer Dependencies

npm install react react-dom tailwindcss

Configuration

1. Add library styles to your CSS entry file (e.g. index.css or globals.css):

@nayan-ui/react/styles.css already includes Tailwind CSS and HeroUI styles — no extra imports needed.

@import '@nayan-ui/react/styles.css';

@source '../node_modules/@nayan-ui/react/dist';

:root,
[data-theme='light'] {
  color-scheme: light;

  --background: hsl(214 45% 95%);
  --foreground: hsl(222 47% 11%);
  --surface: hsl(0 0% 100%);
  --surface-foreground: hsl(222 47% 11%);
  --surface-secondary: hsl(214 40% 96%);
  --surface-secondary-foreground: hsl(222 47% 11%);
  --overlay: hsl(0 0% 100%);
  --overlay-foreground: hsl(222 47% 11%);
  --muted: hsl(215 16% 47%);
  --default: hsl(214 35% 90%);
  --default-foreground: hsl(222 47% 11%);
  --accent: hsl(217 91% 50%);
  --accent-foreground: hsl(0 0% 100%);
  --field-background: hsl(0 0% 100%);
  --field-foreground: hsl(222 47% 11%);
  --field-placeholder: hsl(215 16% 47%);
  --success: hsl(142 71% 45%);
  --success-foreground: hsl(222 47% 11%);
  --warning: hsl(38 92% 50%);
  --warning-foreground: hsl(222 47% 11%);
  --danger: hsl(0 84% 60%);
  --danger-foreground: hsl(0 0% 100%);
  --border: hsl(214 35% 86%);
  --separator: hsl(214 25% 76%);
  --focus: hsl(217 91% 50%);
  --link: hsl(222 47% 11%);
}

.dark,
[data-theme='dark'] {
  color-scheme: dark;

  --background: hsl(222 47% 11%);
  --foreground: hsl(210 40% 98%);
  --surface: hsl(217 33% 22%);
  --surface-foreground: hsl(210 40% 98%);
  --surface-secondary: hsl(217 30% 26%);
  --surface-secondary-foreground: hsl(210 40% 98%);
  --overlay: hsl(217 33% 22%);
  --overlay-foreground: hsl(210 40% 98%);
  --muted: hsl(215 20% 65%);
  --default: hsl(217 33% 26%);
  --default-foreground: hsl(210 40% 98%);
  --accent: hsl(217 91% 60%);
  --accent-foreground: hsl(210 40% 98%);
  --field-background: hsl(217 33% 22%);
  --field-foreground: hsl(210 40% 98%);
  --field-placeholder: hsl(215 20% 65%);
  --success: hsl(142 71% 45%);
  --success-foreground: hsl(222 47% 11%);
  --warning: hsl(38 92% 55%);
  --warning-foreground: hsl(222 47% 11%);
  --danger: hsl(0 72% 51%);
  --danger-foreground: hsl(210 40% 98%);
  --border: hsl(217 33% 28%);
  --separator: hsl(217 25% 38%);
  --focus: hsl(217 91% 60%);
  --link: hsl(210 40% 98%);
}

body {
  color: var(--foreground);
  background: var(--background);
}

2. For Vite projects, add @tailwindcss/vite plugin to vite.config.ts:

import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [react(), tailwindcss()]
});

3. For Next.js projects, add @tailwindcss/postcss to postcss.config.mjs:

export default {
  plugins: {
    '@tailwindcss/postcss': {}
  }
};

Usage

Wrap your app with the NTheme provider:

import { NButton, NTheme, THEMES, useLocalStorage } from '@nayan-ui/react';

export default function App() {
  const [theme, setTheme] = useLocalStorage('THEME', THEMES.LIGHT);

  const toggleTheme = () => {
    setTheme(theme === THEMES.LIGHT ? THEMES.DARK : THEMES.LIGHT);
  };

  return (
    <NTheme theme={theme}>
      <div className="min-h-screen flex flex-col items-center justify-center bg-background">
        <h1 className="mb-5 text-3xl text-foreground">Nayan UI</h1>
        <p className="mb-8 text-muted">Best Component Library for React & React Native.</p>
        <NButton onClick={toggleTheme}>{theme === THEMES.DARK ? 'Switch to Light' : 'Switch to Dark'}</NButton>
      </div>
    </NTheme>
  );
}

Components

NAccordion, NAlert, NAutocomplete, NAvatar, NBadge, NBreadcrumbs, NButton, NButtonGroup, NCard, NCheck, NChip, NCode, NConfirmAlert, NDatePicker, NDialog, NDivider, NInfiniteScroll, NInput, NInputOtp, NKbd, NLink, NLinkify, NLoading, NMenu, NMenuNested, NMenuItem, NMeter, NNumberField, NPagination, NPopover, NProgress, NRadioGroup, NSearchField, NSelect, NSheet, NSkeleton, NSlider, NSwitch, NTable, NTabs, NTabsContent, NTagGroup, NTextarea, NTheme, NToast, NToggleButton, NTooltip

Documentation

For detailed documentation, component APIs, examples, and guides, visit www.nayanui.com

Contributing

We welcome contributions! See the contribution guide to learn how to contribute to the repository and development workflow.

License

MIT