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

@nextleap-al/admin-ui

v1.0.7

Published

Shared design-system primitives, hooks, and layout building blocks used across NextLeap ecosystem apps. Tailwind-based, theme-overridable, designed for AI-driven UI composition.

Readme

@nextleap-al/admin-ui

Shared design-system primitives, hooks, and layout building blocks used across the NextLeap ecosystem. Tailwind-based, theme-overridable, and designed to be consumed by AI agents to compose new UIs quickly.

AI agents: start at docs/AI_GUIDE.md. It contains a compact machine-readable catalogue of every component, its props, and ready to paste examples.


Install

npm i @nextleap-al/admin-ui

Peer dependencies (you must install these)

The consumer app is expected to provide React, ReactDOM, and Tailwind itself. Any modern React + Tailwind project already has them:

npm i react react-dom tailwindcss

Optional — only if you use <Breadcrumbs>, <Logo>, or <SidebarNavItem> with the default Link (you can otherwise pass your own via the LinkComponent prop, e.g. next/link):

npm i react-router-dom

Runtime dependencies (installed automatically)

These are pulled in by npm i @nextleap-al/admin-uiyou do not need to install them manually. Listed here so AI agents and debuggers know what's present in the dependency graph when consuming the lib:

@dnd-kit/core          # sortable lists (SortableList, SortableItem)
@dnd-kit/sortable
@dnd-kit/utilities
@headlessui/react      # Modal, Dropdown, Switch
@radix-ui/react-popover # DatePicker, DateRangePicker popovers
@remixicon/react       # icon set used by some layout components
@tanstack/react-table  # DataTable
clsx                   # class merging (used by `cn`)
date-fns               # date formatting for DatePicker family
lucide-react           # primary icon set across components
react-day-picker       # Calendar, DatePicker
react-hot-toast        # Toaster singleton
tailwind-merge         # class deduping (used by `cn`)

AI note: if npm ls shows any of the above as missing after installing @nextleap-al/admin-ui, the install was incomplete — rerun npm install rather than adding them manually, so the version ranges stay aligned with the library's lockfile.

Setup

1. Tailwind preset

In your tailwind.config.{js,ts}:

import type { Config } from 'tailwindcss';
import nextleapPreset from '@nextleap-al/admin-ui/tailwind-preset';

export default {
  presets: [nextleapPreset],
  content: [
    './index.html',
    './src/**/*.{ts,tsx}',
    // IMPORTANT: include the library so its class names are detected
    './node_modules/@nextleap-al/admin-ui/dist/**/*.{js,cjs}',
  ],
} satisfies Config;

2. Styles

Import the library's default tokens + utilities once (typically in main.tsx or your root CSS file) after Tailwind's base/components/utilities:

@tailwind base;
@tailwind components;
@tailwind utilities;

@import '@nextleap-al/admin-ui/styles.css';

If you only want the design tokens (not the base/utilities):

@import '@nextleap-al/admin-ui/tokens.css';

3. Use components

import { Button, Card, Input, AppShell, SidebarShell } from '@nextleap-al/admin-ui';

export default function Page() {
  return (
    <Card>
      <Input label="Email" />
      <Button variant="primary">Continue</Button>
    </Card>
  );
}

Theming

Everything visual is driven by CSS variables. Override them at :root (or on any scope, e.g. [data-theme="dark"]) to re-theme the library. See docs/THEMING.md for the full token reference.

Quick example (rebrand the primary color):

:root {
  --nl-primary-500: #3b82f6;
  --nl-primary-600: #2563eb;
  --nl-primary-700: #1d4ed8;
}

What's inside

| Area | Modules | | --------- | ------- | | UI | Button, Input, Textarea, Checkbox, Switch, StatusSwitch, Card (+ CardHeader, CardContent, CardFooter), Badge, StatusBadge, Avatar, AvatarGroup, Modal, ConfirmModal, Dropdown, SimpleDropdown, SearchDropdown, MultiSelectDropdown, MultiSelectSimple, ActionMenu, DataTable (+ EditableCell, RowActions), DatePicker, DateRangePicker, DateRangePickerWithTimeInput, Calendar, Tabs (+ TabList, TabTrigger, TabContent), Tooltip, Skeleton (+ SkeletonText, SkeletonCard, SkeletonTable, SkeletonList), EmptyState (+ NoResults, NoData, NoUsers, NoNotifications, NoEvents, NoCompetitions, ErrorState, FileNotFound) | | Common | Breadcrumbs, Logo, PageHeader, FileUploadDropzone, FileSelectDropzone, SortableList, SortableItem | | Layout | AppShell, SidebarShell, SidebarSection, SidebarNavItem, SidebarFooterActions, TopbarShell, ThemeToggleButton, SearchTriggerButton, NotificationBell | | Hooks | useDebounce, useDebouncedCallback, useInlineEdit, useRowInlineEdit, useQueryParams | | Utils | cn | | Types | PaginationMeta, PaginatedResponse, PaginationParams, SortParams, FilterParams, QueryParams | | Presets | DEFAULT_DATE_PRESETS, DEFAULT_DATE_RANGE_PRESETS |


Docs


Philosophy

  1. No hardcoded colors or spacing. Every surface/border/text color is a CSS variable that consumers can override.
  2. Stable APIs. Components are ported 1:1 from a production app; we don't change how they behave, only how they're packaged.
  3. Framework-agnostic where possible. Components that need a router accept a LinkComponent prop so you can plug in react-router, next/link, or any custom Link.
  4. AI-first docs. Every component page lists its props as a typed contract plus a minimal usable example so code-generating agents can get it right on the first try.