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

ard-components

v1.0.1

Published

A collection of reusable React components built with TypeScript

Readme

ARD Components

A collection of reusable React components built with TypeScript and modern CSS.

Installation

npm install ard-components

Usage

import { Button, Input } from 'ard-components';

function App() {
  return (
    <div>
      <Button variant="primary" size="medium">
        Click me
      </Button>
      <Input 
        label="Email" 
        type="email" 
        placeholder="Enter your email"
        helperText="We'll never share your email"
      />
    </div>
  );
}

Components

Button

A customizable button component with multiple variants and sizes.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | React.ReactNode | - | The content of the button | | variant | 'primary' \| 'secondary' \| 'outline' \| 'ghost' | 'primary' | The variant of the button | | size | 'small' \| 'medium' \| 'large' | 'medium' | The size of the button | | disabled | boolean | false | Whether the button is disabled | | loading | boolean | false | Whether the button is in loading state | | type | 'button' \| 'submit' \| 'reset' | 'button' | The type of the button | | onClick | (event: React.MouseEvent<HTMLButtonElement>) => void | - | Click handler | | className | string | - | Additional CSS class name | | style | React.CSSProperties | - | Additional styles |

Examples

// Basic usage
<Button>Click me</Button>

// With variant and size
<Button variant="outline" size="large">
  Large Outline Button
</Button>

// With loading state
<Button loading={isLoading} onClick={handleSubmit}>
  Submit
</Button>

// Disabled button
<Button disabled>Cannot click</Button>

Input

A flexible input component with various types, states, and styling options.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | type | 'text' \| 'email' \| 'password' \| 'number' \| 'tel' \| 'url' \| 'search' | 'text' | The type of the input | | placeholder | string | - | The placeholder text | | value | string | - | The value of the input | | defaultValue | string | - | The default value of the input | | disabled | boolean | false | Whether the input is disabled | | required | boolean | false | Whether the input is required | | readOnly | boolean | false | Whether the input is read-only | | size | 'small' \| 'medium' \| 'large' | 'medium' | The size of the input | | variant | 'default' \| 'filled' \| 'outlined' | 'default' | The variant of the input | | state | 'default' \| 'error' \| 'success' \| 'warning' | 'default' | The state of the input | | label | string | - | The label for the input | | helperText | string | - | The helper text | | errorMessage | string | - | The error message | | successMessage | string | - | The success message | | warningMessage | string | - | The warning message | | onChange | (event: React.ChangeEvent<HTMLInputElement>) => void | - | Change handler | | onBlur | (event: React.FocusEvent<HTMLInputElement>) => void | - | Blur handler | | onFocus | (event: React.FocusEvent<HTMLInputElement>) => void | - | Focus handler | | className | string | - | Additional CSS class name | | style | React.CSSProperties | - | Additional styles |

Examples

// Basic usage
<Input placeholder="Enter text" />

// With label and helper text
<Input 
  label="Email" 
  type="email" 
  placeholder="Enter your email"
  helperText="We'll never share your email"
/>

// With error state
<Input 
  label="Password" 
  type="password" 
  state="error"
  errorMessage="Password is required"
/>

// Different variants
<Input variant="filled" placeholder="Filled input" />
<Input variant="outlined" placeholder="Outlined input" />

// Different sizes
<Input size="small" placeholder="Small input" />
<Input size="large" placeholder="Large input" />

Development

Prerequisites

  • Node.js 16+
  • npm or yarn

Setup

  1. Clone the repository:
git clone [email protected]:ardsilva/ard-components.git
cd ard-components
  1. Install dependencies:
npm install
  1. Start development server:
npm run dev
  1. Build the package:
npm run build

Publishing

  1. Build the package:
npm run build
  1. Publish to npm:
npm publish

License

MIT

Repository

GitHub Repository