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

@render-px/ui

v0.1.1

Published

Token-based UI components: Button, Badge, Callout, InlineCode

Readme

@render-px/ui

Token-based React UI components — Button, Badge, Callout, InlineCode — built with CVA and Tailwind CSS design tokens.

Installation

npm install @render-px/ui

Peer dependencies

npm install react react-dom

Design tokens

Components rely on Tailwind CSS custom properties (design tokens) defined in your project. Add these to your Tailwind config or CSS:

| Token | Used by | |---|---| | primary | Button (primary/secondary variant), Badge (default), Callout title | | content | Button (ghost/outline), Callout body text | | content-muted | Badge (muted variant) | | content-border | Button (outline border), Badge (muted bg) | | box-info-bg / border | Badge (default bg), Callout (info) | | box-success-bg / border | Badge (success), Callout (success) | | box-warning-bg / border | Badge (warning), Callout (warning) | | box-yellow-bg / border | Callout (note) | | inline-code-bg | InlineCode background |

Components

Button

import { Button } from '@render-px/ui'

<Button>Click me</Button>
<Button variant="secondary" size="lg">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="outline" size="sm">Outline</Button>

// Polymorphic — render as a child element (e.g. a link)
<Button asChild>
  <a href="/page">Go to page</a>
</Button>

| Prop | Type | Default | Description | |---|---|---|---| | variant | 'primary' \| 'secondary' \| 'ghost' \| 'outline' | 'primary' | Visual style | | size | 'sm' \| 'md' \| 'lg' | 'md' | Padding and font size | | asChild | boolean | false | Merge styles onto child element via Radix Slot |

Forwards all native <button> attributes and a ref.


Badge

import { Badge } from '@render-px/ui'

<Badge>Default</Badge>
<Badge variant="success">Success</Badge>
<Badge variant="warning" size="sm">Warning</Badge>
<Badge variant="muted" size="lg">Muted</Badge>

| Prop | Type | Default | Description | |---|---|---|---| | variant | 'default' \| 'success' \| 'warning' \| 'muted' | 'default' | Color theme | | size | 'sm' \| 'md' \| 'lg' | 'md' | Padding and font size |

Forwards all native <span> attributes.


Callout

import { Callout } from '@render-px/ui'

<Callout title="Info">This is an informational message.</Callout>
<Callout variant="success" title="Done">Your changes were saved.</Callout>
<Callout variant="warning" title="Heads up">This action is irreversible.</Callout>
<Callout variant="note" title="Note">Something worth knowing.</Callout>

| Prop | Type | Default | Description | |---|---|---|---| | variant | 'info' \| 'success' \| 'warning' \| 'note' | 'info' | Color theme for border, background, and title | | title | string | — | Optional heading rendered above the body |

Forwards all native <div> attributes.


InlineCode

import { InlineCode } from '@render-px/ui'

<p>Run <InlineCode>npm install</InlineCode> to get started.</p>

Renders a styled <code> element. Forwards all native <code> attributes.

Development

# Build once
npm run build

# Watch mode
npm run dev

Output is written to dist/ in both ESM and CJS formats with TypeScript declarations.

License

MIT