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

v3.10.0

Published

React wrappers for HELiX web components

Readme

@helixui/react

React wrappers for the HELiX web component library. Auto-generated from custom-elements.json using @lit/react createComponent(). The exact wrapper inventory is the union of CEM declarations and the generator's allow-list; see Available Components below for the current list.

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 every component:

// 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 and refs are fully typed; event callback names (onHxClick, onHxInput, etc.) are typed, but their payloads are currently surfaced as Event — CEM-specific CustomEvent<DetailType> payload typing is queued for the next generator pass:

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

The current generated wrapper set (96 wrappers, regenerated from packages/hx-react/src/index.ts):

HxAccordion, HxAccordionItem, HxActionBar, HxAlert, HxAvatar, HxBadge, HxBanner, HxBreadcrumb, HxButton, HxButtonGroup, HxCard, HxCarousel, HxCarouselItem, HxCheckbox, HxCheckboxGroup, HxCodeSnippet, HxColorPicker, HxCombobox, HxContainer, HxCopyButton, HxCounter, HxDataTable, HxDatePicker, HxDialog, HxDivider, HxDrawer, HxDropdown, HxField, HxFieldLabel, HxFileUpload, HxForm, HxFormatDate, HxGrid, HxGridItem, HxHelpText, HxIcon, HxIconButton, HxImage, HxLink, HxList, HxListItem, HxMenu, HxMenuDivider, HxMenuItem, HxMeter, HxNav, HxNavItem, HxNumberInput, HxOverflowMenu, HxPagination, HxPatientBanner, HxPhiField, HxPopover, HxPopup, HxProgressBar, HxProgressRing, HxProse, HxRadio, HxRadioGroup, HxRating, HxSelect, HxSideNav, HxSkeleton, HxSlider, HxSpinner, HxSplitButton, HxSplitPanel, HxStack, HxStat, HxStep, HxSteps, HxStyleScope, HxSwitch, HxTab, HxTable, HxTabPanel, HxTabs, HxTag, HxTbody, HxTd, HxText, HxTextarea, HxTextInput, HxTfoot, HxTh, HxThead, HxTheme, HxTimePicker, HxToast, HxToastStack, HxToggleButton, HxTooltip, HxTopNav, HxTr, HxTreeItem, HxTreeView

This list is generated from CEM + the allow-list; consult packages/hx-react/src/index.ts for the authoritative re-export block.