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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@prioticket/design-system-react

v1.3.1

Published

React wrappers for the Prioticket Design System web components

Readme

Prioticket Design System React

Official React bindings for the @prioticket/design-system-web component library. These wrappers are auto-generated from the Web Component manifest and expose each element as a typed React component via @lit/react.

Installation

npm install @prioticket/design-system-react @prioticket/design-system-web

The React package depends on the core web component bundle. Most projects also import one of the distributed theme stylesheets:

import '@prioticket/design-system-web/theme-with-fonts.css';
// or: import '@prioticket/design-system-web/theme-only.css';

Quick Start

import { useEffect } from 'react';
import { PdButton, PdDialog } from '@prioticket/design-system-react';
import { initialize } from '@prioticket/design-system-web/theming';
import '@prioticket/design-system-web/theme-with-fonts.css';

export function App() {
  useEffect(() => {
    initialize({
      theme: {
        colorPrimary: '#ff6600',
        colorOnPrimary: '#ffffff'
      }
    });
  }, []);

  return (
    <PdDialog onPrimaryAction={(event) => console.log(event.detail)}>
      <PdButton slot="primary-action">Continue</PdButton>
    </PdDialog>
  );
}

All wrappers render a custom element under the hood, so slots, attributes, and properties behave exactly like the base web component.

Event Handling

Events emitted by the web components are exposed as camel-cased React props that start with on. For example, the pd-dialog events primary-action and secondary-action become onPrimaryAction and onSecondaryAction. Each handler receives the original CustomEvent, preserving its detail payload.

Theming Utilities

The core package exposes helpers under @prioticket/design-system-web/theming. Use initialize to apply a theme at app start or applyTheme to update tokens later. The helpers are framework agnostic and can be called from any React effect or data loader.

import { initialize } from '@prioticket/design-system-web/theming';

await initialize({ theme: { colorPrimary: '#4caf50' } });

TypeScript Support

Every wrapper re-exports a *Element type that maps to the underlying custom element class. This is useful when grabbing refs:

import { useRef } from 'react';
import { PdTextField, PdTextFieldElement } from '@prioticket/design-system-react';

const ref = useRef<PdTextFieldElement>(null);

Component Reference

The React entry point (@prioticket/design-system-react) exports all Prioticket components. Refer to COMPONENT-DOCUMENTATION.md in the root of the design system repository for behavior, slots, and properties—they apply equally to the React wrappers.

SSR & Hydration

The wrappers are thin @lit/react adapters and support server-side rendering. Renderers will output the corresponding custom element tags; hydration happens client-side once the browser upgrades the elements.

Troubleshooting

  • Ensure the core package is loaded exactly once (e.g. do not register components via multiple versions of the bundle).
  • Import the CSS theme before rendering components to avoid flashes of unstyled content.
  • If you tree-shake aggressively, keep the side-effect flag for @prioticket/design-system-react enabled so the custom elements are defined.