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

@elemnts-ui/react

v0.0.40

Published

An open source components library, providing 80+ components with a consistent design system.

Downloads

539

Readme

@elemnts-ui/react

@elemnts-ui/react is a powerful React component library designed for the Elemnts UI design system. It integrates headless, interactive accessibility features powered by Ark UI, ensuring compliance with WAI-ARIA standards for keyboard navigation, screen reader support, and focus management. Additionally, it leverages Panda CSS, a build-time CSS-in-JS solution, to deliver optimized styling without runtime overhead.

Designed for speed, scalability, and flexibility, it features 90+ primitives crafted to help you construct custom web applications with complete control.


✨ Features

  • ♿ Accessibility First — Headless component logic adhering to strict WAI-ARIA guidelines, handling keyboard navigation, screen reader support, and focus management automatically.
  • ⚡ Zero Runtime Style Overhead — Native Panda CSS integration compiles styles to static CSS files at build time, eliminating runtime JS injection and layout shifts.
  • 🧩 Compound Architecture — Uses the "Compound Component" pattern, giving developers maximum flexibility over nested layout structures.
  • 🛠️ Strongly Typed — Built with TypeScript to deliver predictable type checking, autocompletion, and variant discovery.
  • 📱 Fluid & Responsive — Out-of-the-box support for responsive variants, dark-mode adaptations, and custom scaling options.

📦 Installation

🛠️ Get Started with Elemnts UI

To begin using Elemnts UI components, follow these straightforward steps:

  1. Set Up Panda CSS: Ensure your project uses Panda CSS. If not already configured, refer to the official PandaCSS setup guide to configure your environment.

  2. Install Dependencies: Install the required packages using your preferred package manager:

    # Using pnpm
    pnpm add @elemnts-ui/react @elemnts-ui/core && pnpm add -D @pandacss/dev
    
    # Using yarn
    yarn add @elemnts-ui/react @elemnts-ui/core && yarn add -D @pandacss/dev
    
    # Using npm
    npm install @elemnts-ui/react @elemnts-ui/core && npm install -D @pandacss/dev 
    
    # Using bun
    bun add @elemnts-ui/react @elemnts-ui/core && bun add -D @pandacss/dev

Configure Panda CSS

Run the following command to initialize Panda CSS:

pnpm panda init --postcss
# or
yarn panda init --postcss
# or
npx panda init --postcss
# or
bun panda init --postcss

Edit your panda.config.ts file to include the Elemnts UI preset:

import { defineConfig } from '@pandacss/dev';
import { basePreset } from '@elemnts-ui/core/presets';

export default defineConfig({
  presets: [basePreset],
  jsxFramework: "react",
  include: [
    "src/**/*.{ts,tsx}",
    "node_modules/@elemnts-ui/react/dist/buildinfo.json",
  ],
});

Add Global CSS

Create a src/global.css file:

/* src/global.css */
@@layer reset, base, tokens, recipes, utilities;

Set Up Build Scripts

Add the following script to your package.json to generate Panda CSS:

"scripts": {
  "prepare": "panda codegen"
}

💻 Usage

Set Up Global CSS

To ensure your app uses the styling recipes from Elemnts UI, import the global CSS file in your app's root component. This step ensures consistent styling across your application.

import './global.css';

export function App() {
  return (
    <div>Your app content here...</div>
  );
}

This step is crucial for leveraging the built-in styling provided by Elemnts UI.

Basic Component

Import and render components with built-in styling recipes:

import { Button } from '@elemnts-ui/react';

export default function Component() {
  return (
    <Button variant="primary" size="md" onClick={() => console.log('Accelerating!')}>
      Get Started
    </Button>
  );
}

Compound Components

For complex structures, use compound component children to structure the layout to your exact specification:

import { Accordion } from '@elemnts-ui/react';

export default function Component() {
  return (
    <Accordion defaultValue={['features']}>
      <Accordion.Item value="features">
        <Accordion.ItemTrigger>
          What makes Elemnts UI fast?
        </Accordion.ItemTrigger>
        <Accordion.ItemContent>
          Elemnts UI extracts styling definitions into static CSS during compilation,
          ensuring zero runtime JS execution overhead for CSS styles.
        </Accordion.ItemContent>
      </Accordion.Item>
    </Accordion>
  );
}

📄 License

Part of the Elemnts UI workspace. Distributed under the MIT License. See repository LICENSE for details.