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

@kala-ui/react

v0.1.0-beta.4

Published

~90 accessible standard UI components built with Radix UI and Tailwind CSS — primitives, form controls, overlays and menus. App-level composites (AppShell, DataTable, charts) live in @kala-ui/react-app.

Readme

@kala-ui/react

Standard UI components for Kala UI — the design-system vocabulary: primitives, form controls, overlays and menus, built with Radix UI and Tailwind CSS.

~90 accessible, production-ready components. App-level composites (AppShell, DataTable, charts, drag-and-drop) live in @kala-ui/react-app, which depends on this package.

Installation

npm install @kala-ui/react@beta
# optional: app-level composites
npm install @kala-ui/react-app@beta

Requires React 19.2+. The @kala-ui/react-hooks dependency installs automatically.

Import the compiled stylesheet once (no Tailwind required in your app):

@import "@kala-ui/react/styles";
/* @import "@kala-ui/react-app/styles"; */ /* after core, if used */

Usage

import { Button } from "@kala-ui/react/button";
import { Input } from "@kala-ui/react/input";
import { Dialog } from "@kala-ui/react/dialog";
import { cn } from "@kala-ui/react/lib/utils";

Every component has a subpath export (@kala-ui/react/<component>) plus the barrel (@kala-ui/react).

Component catalog

  • Layout: box, flex, grid, stack, group, center, container, paper, aspect-ratio, overlay, separator, resizable, scroll-area, collapsible, collapse, accordion, tabs
  • Typography: text, heading, code, kbd
  • Buttons & toggles: button, button-group, copy-button, burger, toggle, toggle-group, toolbar, segmented-control
  • Forms: input, textarea, number-input, input-group, input-otp, label, field, checkbox, radio-group, switch, slider, select, native-select, combobox, multi-select, calendar, date-picker, time-picker, color-input, tag-input, file-upload, password-strength-indicator, rating, command
  • Display: avatar, avatar-group, badge, tag, card, indicator, spinner, skeleton, progress, ring-progress, banner, table, tree-view, list, timeline, steps, pagination, breadcrumbs
  • Overlays & menus: dialog, alert-dialog, drawer, popover, hover-card, tooltip, dropdown-menu, context-menu, menubar, navigation-menu
  • Feedback & utility: alert, empty-state, error-boundary, page-loader, section-loader, loading-overlay, spoiler, page-transition, skip-to-content, toast, theme-provider, kala-provider

Theming

Four built-in themes (light, dark, high-contrast-light, high-contrast-dark), class-based dark mode, and a ThemeProvider that also accepts custom themes via registration. Every component reads CSS custom properties — override tokens on :root/.dark and the whole library follows. See THEMING.md.

:root {
  --primary: oklch(0.55 0.22 264);
  --primary-foreground: white;
}

Identifying components in the DOM

Every component renders a stable data-kala-component="<name>" attribute on its root element (compound parts carry their own name: dialog-content, card-header, data-table-toolbar, …). It is a public API kept stable across releases — use it for DevTools debugging, e2e selectors, and targeted consumer CSS:

// Playwright
await page.locator("[data-kala-component='button']").first().click();
/* targeted override without fighting utility classes */
[data-kala-component='card'] {
  --kala-radius-card: 0;
}

When components compose (a Card renders a Box), the most specific component's name wins. The data-slot attributes found on some parts are shadcn-compatible styling hooks kept for ecosystem CSS snippets; prefer data-kala-component for identification.

React Server Components

All component modules ship with a "use client" banner, so they import cleanly into RSC apps (dist/lib stays server-safe for cn()).

Development

pnpm storybook        # composed dev Storybook (core + app stories)
pnpm test             # unit tests (vitest + testing-library)
pnpm type-check       # tsc --noEmit
pnpm lint             # biome
pnpm build            # tsc + postbuild + compiled CSS

Credits

See the Storybook documentation for complete interactive docs.