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

test-trely-ui-kit

v0.1.3

Published

UI component library

Readme

Trely UI Kit

React UI component library with CSS Modules.

Installation

npm install trely-ui-kit
# or
yarn add trely-ui-kit

Usage

Button Component

import { Button } from 'trely-ui-kit';

function App() {
  return (
    <div>
      {/* Basic button */}
      <Button>Click me</Button>

      {/* Different variants */}
      <Button variant="filled">Filled</Button>
      <Button variant="outline">Outline</Button>
      <Button variant="light">Light</Button>
      <Button variant="subtle">Subtle</Button>

      {/* Different sizes */}
      <Button size="xs">Extra Small</Button>
      <Button size="sm">Small</Button>
      <Button size="md">Medium</Button>
      <Button size="lg">Large</Button>
      <Button size="xl">Extra Large</Button>

      {/* Different colors */}
      <Button color="blue">Blue</Button>
      <Button color="red">Red</Button>
      <Button color="green">Green</Button>
      <Button color="yellow">Yellow</Button>
      <Button color="gray">Gray</Button>
      <Button color="dark">Dark</Button>

      {/* Loading state */}
      <Button loading>Loading...</Button>

      {/* Disabled */}
      <Button disabled>Disabled</Button>
    </div>
  );
}

Input Component

import { Input } from 'trely-ui-kit';

function App() {
  return (
    <div>
      {/* Basic input */}
      <Input placeholder="Enter text" />

      {/* With label */}
      <Input label="Email" placeholder="[email protected]" />

      {/* With description */}
      <Input
        label="Username"
        description="Please use only letters and numbers"
        placeholder="john_doe"
      />

      {/* With error */}
      <Input
        label="Email"
        placeholder="[email protected]"
        error="Invalid email address"
      />

      {/* Required field */}
      <Input label="Email" placeholder="[email protected]" required />

      {/* Different sizes */}
      <Input size="xs" placeholder="Extra small" />
      <Input size="sm" placeholder="Small" />
      <Input size="md" placeholder="Medium" />
      <Input size="lg" placeholder="Large" />
      <Input size="xl" placeholder="Extra large" />

      {/* Disabled */}
      <Input label="Email" placeholder="[email protected]" disabled />
    </div>
  );
}

Props

Button Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'filled' \| 'outline' \| 'light' \| 'subtle' | 'filled' | Button style variant | | size | 'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' | 'md' | Button size | | color | 'blue' \| 'red' \| 'green' \| 'yellow' \| 'gray' \| 'dark' | 'blue' | Button color | | loading | boolean | false | Show loading spinner | | disabled | boolean | false | Disable button |

Extends all standard HTML button attributes.

Input Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | label | string | - | Input label | | error | string | - | Error message | | description | string | - | Helper text | | size | 'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' | 'md' | Input size |

Extends all standard HTML input attributes (except size).

Development

# Install dependencies
yarn install

# Run Storybook
yarn storybook

# Build library
yarn build

# Build Storybook
yarn build-storybook

# Lint
yarn lint
yarn lint:fix

Publishing

  1. Build the library:
yarn build
  1. Update version in package.json

  2. Publish to npm:

npm publish

License

MIT