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

@helixui/react

v1.1.1

Published

React wrappers for HELiX web components

Readme

@helixui/react

React wrappers for all 98 HELiX web components. Auto-generated from custom-elements.json using @lit/react createComponent().

Installation

npm install @helixui/react @helixui/library
# or
pnpm add @helixui/react @helixui/library

Peer dependencies: react >= 18.0.0, react-dom >= 18.0.0

Usage

import { HxButton, HxTextInput, HxDialog } from '@helixui/react';

function MyForm() {
  return (
    <form>
      <HxTextInput label="Name" onHxInput={(e) => console.log(e)} />
      <HxButton variant="primary" onHxClick={() => console.log('clicked')}>
        Submit
      </HxButton>
    </form>
  );
}

Event Binding

Custom events are mapped to React-style callback props with the onHx prefix:

| Web component event | React prop | | ------------------- | ------------ | | hx-click | onHxClick | | hx-input | onHxInput | | hx-change | onHxChange | | hx-open | onHxOpen | | hx-close | onHxClose |

The onHx* prefix avoids collision with native React synthetic events (onChange, onClick).

Next.js 15 App Router (SSR)

All wrappers include 'use client' as the first line, making them compatible with Next.js 15 App Router. No additional configuration is needed.

// app/page.tsx (Server Component) — import is fine
import { HxButton } from '@helixui/react';

// HxButton automatically runs as a Client Component due to 'use client'
export default function Page() {
  return <HxButton>Click me</HxButton>;
}

Tree-Shaking

Each component is a separate entry point. Importing HxButton does not bundle all 98 components:

// Only HxButton is included in your bundle
import { HxButton } from '@helixui/react';

// Or use the direct component path for explicit splitting
import { HxButton } from '@helixui/react/components/HxButton';

TypeScript

All prop types are derived from CEM (custom-elements.json) declarations. Props, event handlers, and refs are fully typed:

import { HxButton, type HxButtonProps } from '@helixui/react';

const props: HxButtonProps = {
  variant: 'primary', // 'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost' | 'outline'
  size: 'md', // 'sm' | 'md' | 'lg'
  disabled: false,
  onHxClick: (e) => {},
};

Regenerating Wrappers

Wrappers are auto-generated from packages/hx-library/custom-elements.json. If the CEM changes (new component, new prop, new event), regenerate:

pnpm --filter=@helixui/react run generate

This runs scripts/generate-react-wrappers.ts which reads the CEM and writes all wrapper files to src/components/.

Available Components

All 98 HELiX components are available:

HxAccordion, HxAccordionItem, HxActionBar, HxAlert, HxAvatar, HxBadge, HxBanner, HxBreadcrumb, HxBreadcrumbItem, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCheckbox, HxCheckboxGroup, HxCodeSnippet, HxColorPicker, HxCombobox, HxContainer, HxCopyButton, HxCounter, HxDataTable, HxDatePicker, HxDialog, HxDivider, HxDrawer, HxDropdown, HxFileUpload, HxForm, HxIcon, HxInput, HxLabel, HxMenu, HxMenuItem, HxMenuLabel, HxNavItem, HxNavSection, HxNumberInput, HxOverflowMenu, HxPagination, HxPopover, HxProgressBar, HxProgressRing, HxQrCode, HxRadio, HxRadioButton, HxRadioGroup, HxRange, HxRating, HxRelativeTime, HxResizeObserver, HxSelect, HxSideNav, HxSkeletonEffect, HxSkeletonText, HxSlider, HxSpinner, HxSplitButton, HxSplitPanel, HxSteps, HxStructuredList, HxStructuredListBody, HxStructuredListHead, HxStructuredListRow, HxSwitch, HxTab, HxTabGroup, HxTabPanel, HxTabs, HxTag, HxTd, HxTextarea, HxTextInput, HxTh, HxTimePicker, HxToast, HxToastStack, HxToggleButton, HxTooltip, HxTopNav, HxTr, HxTreeItem, HxTreeView, HxVisuallyHidden