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

@na-kit/ui

v1.8.0

Published

A comprehensive UI Kit library built with Lit elements

Readme

NA-Kit UI

Enterprise-grade Web Components library built with Lit 3 & TypeScript — framework-agnostic, accessible, and tree-shakeable.

npm License: MIT Tests a11y

Highlights

  • 74 components — forms, data display, navigation, feedback, charts, marketing, and more
  • Framework-agnostic — works with React, Vue, Angular, Svelte, or vanilla HTML
  • Accessible — WCAG 2.2 AA compliant with full keyboard + screen reader support
  • Tree-shakeable — import only the components you use (~147 KB gzipped full bundle)
  • Dark mode — built-in light/dark theming via CSS custom properties
  • Enterprise utilities — validation, i18n (8 locales + RTL), security, virtual scroll, data export
  • Type-safe — full TypeScript definitions for every component

Installation

npm install @na-kit/ui lit

CDN

<script type="module" src="https://unpkg.com/@na-kit/ui/dist/index.js"></script>

Or via jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/@na-kit/ui/dist/index.js"></script>

Quick Start

<!DOCTYPE html>
<html lang="en">
<head>
  <script type="module">
    import '@na-kit/ui';
  </script>
</head>
<body>
  <ui-theme-provider theme="light">
    <ui-container>
      <ui-typography variant="h1">Hello NA-Kit</ui-typography>
      <ui-button variant="primary">Get Started</ui-button>
    </ui-container>
  </ui-theme-provider>
</body>
</html>

Individual Component Imports

Import only what you need for smaller bundles:

import '@na-kit/ui/components/button/button.js';
import '@na-kit/ui/components/input/input.js';

Components (74)

Foundation

| Component | Tag | Description | |-----------|-----|-------------| | Button | <ui-button> | Primary, secondary, outlined, text, icon variants | | Icon | <ui-icon> | SVG icon system with semantic/decorative modes | | Typography | <ui-typography> | h1–h6, body, caption, overline, code | | Theme Provider | <ui-theme-provider> | Light/dark mode with CSS custom properties |

Layout

| Component | Tag | Description | |-----------|-----|-------------| | Container | <ui-container> | Responsive max-width container | | Grid / Row / Col | <ui-row> <ui-col> | 12-column responsive grid | | Stack / Flex | <ui-stack> <ui-flex> | Flexbox layout helpers | | Card | <ui-card> | Content card with header/footer slots | | Divider | <ui-divider> | Horizontal/vertical dividers | | App Shell | <ui-app-shell> | Full page layout with header, sidebar, footer |

Forms

| Component | Tag | Description | |-----------|-----|-------------| | Input | <ui-input> | Text, email, password, number, search, tel | | Select | <ui-select> | Dropdown select with search and groups | | Checkbox | <ui-checkbox> | Checkbox with indeterminate state | | Radio | <ui-radio> | Radio button group | | Switch | <ui-switch> | Toggle switch | | Autocomplete | <ui-autocomplete> | Search with async suggestions | | Multi-Select | <ui-multi-select> | Tag-based multi-selection | | Date Picker | <ui-datepicker> | Calendar date picker with i18n | | Color Picker | <ui-colorpicker> | HEX/RGB/HSL color picker | | File Upload | <ui-file-upload> | Drag-and-drop with previews | | Range Slider | <ui-range-slider> | Single and dual-thumb slider | | Rating | <ui-rating> | Star/custom icon rating | | Number Input | <ui-number-input> | Numeric stepper input | | Rich Text Editor | <ui-rich-text-editor> | WYSIWYG with markdown and source view |

Data Display

| Component | Tag | Description | |-----------|-----|-------------| | Table | <ui-table> | Sortable, resizable, expandable rows, sticky columns | | Data Grid | <ui-data-grid> | Virtual scroll, inline edit, grouping, export | | Avatar | <ui-avatar> | Image or initials with status | | Avatar Group | <ui-avatar-group> | Stacked avatars with overflow | | Badge | <ui-badge> | Status indicators and counters | | Chip | <ui-chip> | Tags with remove action | | List | <ui-list> | Ordered/unordered with icons | | Timeline | <ui-timeline> | Vertical/horizontal timeline | | Tree View | <ui-tree-view> | Hierarchical tree with checkboxes | | Image | <ui-image> | Lazy-loading responsive image | | Blockquote | <ui-blockquote> | Styled quotation | | Code Block | <ui-code-block> | Syntax highlighted code | | Kbd | <ui-kbd> | Keyboard shortcut display |

Feedback & Overlays

| Component | Tag | Description | |-----------|-----|-------------| | Alert | <ui-alert> | Info, success, warning, error alerts | | Modal | <ui-modal> | Dialog with focus trap | | Drawer | <ui-drawer> | Slide-in side panel | | Tooltip | <ui-tooltip> | Hover/focus tooltip | | Popover | <ui-popover> | Rich content popover | | Toast / Feedback | <ui-feedback> | Toast notifications with queue | | Progress | <ui-progress> | Linear/circular progress | | Spinner | <ui-spinner> | Loading spinner | | Skeleton | <ui-skeleton> | Content placeholder loading | | Empty State | <ui-empty-state> | Zero-data state | | Announcement Bar | <ui-announcement-bar> | Dismissible site-wide banner | | Cookie Consent | <ui-cookie-consent> | GDPR cookie consent banner |

Navigation

| Component | Tag | Description | |-----------|-----|-------------| | Accordion | <ui-accordion> | Collapsible content panels | | Breadcrumbs | <ui-breadcrumbs> | Navigation breadcrumb trail | | Tabs | <ui-tabs> | Tabbed interface with overflow scroll | | Stepper | <ui-stepper> | Step-by-step workflow | | Pagination | <ui-pagination> | Page navigation | | Menu | <ui-menu> | Dropdown and context menus | | Dropdown | <ui-dropdown> | Trigger-based dropdown | | Link | <ui-link> | Styled anchor with variants | | Scroll to Top | <ui-scroll-to-top> | Floating scroll button | | Command Palette | <ui-command-palette> | Cmd+K fuzzy search |

Data Visualization

| Component | Tag | Description | |-----------|-----|-------------| | Chart | <ui-chart> | Line, bar, pie, doughnut, area, scatter | | Gauge | <ui-gauge> | Radial gauge meter | | Sparkline | <ui-sparkline> | Inline mini charts | | Heatmap | <ui-heatmap> | Grid-based heatmap |

Marketing & Website

| Component | Tag | Description | |-----------|-----|-------------| | Hero Section | <ui-hero-section> | Full-width hero banners | | CTA Section | <ui-cta-section> | Call-to-action blocks | | Carousel | <ui-carousel> | Image/content slider | | Testimonial | <ui-testimonial> | Customer quotes and reviews | | Pricing Table | <ui-pricing-table> | Plan comparison tables | | Stats Counter | <ui-stats-counter> | Animated metric counters | | FAQ | <ui-faq> | FAQ accordion with JSON-LD | | Blog Card | <ui-blog-card> | Article preview cards | | Social Share | <ui-social-share> | Social media share buttons | | Countdown | <ui-countdown> | Event countdown timer | | Logo Cloud | <ui-logo-cloud> | Partner/client logo marquee | | Feature Grid | <ui-feature-grid> | Benefits grid with icons | | Lightbox | <ui-lightbox> | Full-screen image gallery | | Video Player | <ui-video-player> | Custom video controls | | Image Comparison | <ui-image-comparison> | Before/after slider |

Enterprise Utilities

// Validators — 15+ built-in (email, url, phone, pattern, custom, async...)
import { validators, composeValidators } from '@na-kit/ui';

// i18n — 8 locales, RTL, date/number/currency formatting
import { LocaleProvider } from '@na-kit/ui';

// Security — XSS protection, CSP, HTML/URL sanitization
import { sanitizeHTML, generateCSP } from '@na-kit/ui';

// Data Export — CSV, Excel, JSON, clipboard, print
import { exportToCSV, exportToExcel } from '@na-kit/ui';

// Performance — debounce, throttle, memoize, virtual scroll
import { VirtualScrollController } from '@na-kit/ui';

Theming

CSS Custom Properties

:root {
  --ui-color-primary: #6366f1;
  --ui-color-success: #10b981;
  --ui-color-danger: #ef4444;
  --ui-spacing-md: 16px;
  --ui-radius-md: 8px;
  --ui-font-family: system-ui, -apple-system, sans-serif;
}

Dark Mode

<ui-theme-provider theme="dark" persist-theme>
  <!-- Automatically applies dark theme -->
</ui-theme-provider>

CSS Parts

All components expose ::part() for deep styling:

ui-button::part(button) { border-radius: 9999px; }
ui-input::part(input) { font-size: 18px; }
ui-card::part(card) { box-shadow: none; }

Base Styles (Optional)

import '@na-kit/ui/styles';          // All styles
import '@na-kit/ui/styles/reset.css'; // CSS reset only
import '@na-kit/ui/styles/dark-mode.css';

Framework Integration

React

function App() {
  return (
    <ui-button variant="primary" onClick={() => alert('Clicked!')}>
      Click Me
    </ui-button>
  );
}

Vue

<template>
  <ui-button variant="primary" @click="handleClick">
    Click Me
  </ui-button>
</template>

<script setup>
import '@na-kit/ui/components/button/button.js';
</script>

Angular

// app.module.ts
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule {}
<!-- component.html -->
<ui-button variant="primary" (click)="handleClick()">
  Click Me
</ui-button>

Examples

Login Form

<ui-card elevated>
  <div slot="header">
    <ui-typography variant="h3">Sign In</ui-typography>
  </div>
  <ui-input label="Email" type="email" required></ui-input>
  <ui-input label="Password" type="password" required></ui-input>
  <ui-checkbox label="Remember me"></ui-checkbox>
  <div slot="footer">
    <ui-button variant="primary" full-width>Sign In</ui-button>
  </div>
</ui-card>

Data Dashboard

<ui-container>
  <ui-row>
    <ui-col span-md="3">
      <ui-stats-counter value="12847" label="Users" trend="up" trend-value="12%"></ui-stats-counter>
    </ui-col>
    <ui-col span-md="3">
      <ui-stats-counter value="94.2" suffix="%" label="Uptime"></ui-stats-counter>
    </ui-col>
  </ui-row>
  <ui-data-grid .columns=${columns} .data=${data} sortable filterable paginated></ui-data-grid>
</ui-container>

Browser Support

  • Chrome / Edge 90+
  • Firefox 90+
  • Safari 15+

Development

npm install          # Install dependencies
npm run build        # Build the library
npm test             # Run 1409 tests
npm run test:coverage # Coverage report
npm run storybook    # Launch Storybook (788 stories)
npm run dev          # Build + dev server

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT


Built with Lit ❤️