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

@tonyarbor/components

v0.9.3

Published

React components for Arbor Design System

Readme

@arbor-ds/components

React components for the Arbor Design System.

Installation

npm install @arbor-ds/components @arbor-ds/tokens

Peer Dependencies:

  • React >= 18.0.0
  • React DOM >= 18.0.0

Usage

Import Components

import { Button, Card, Input } from '@arbor-ds/components';

Import CSS Variables (Optional)

For design tokens to be available as CSS variables:

import '@arbor-ds/tokens/css';

Components

Button

A versatile button component with multiple variants and sizes.

<Button variant="primary" size="md" onClick={() => console.log('Clicked')}>
  Click me
</Button>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'primary' \| 'secondary' \| 'ghost' | 'primary' | Visual style variant | | size | 'sm' \| 'md' \| 'lg' | 'md' | Button size | | asChild | boolean | false | Render as child component | | disabled | boolean | false | Disabled state | | children | ReactNode | - | Button content |

Examples

// Primary button
<Button variant="primary">Submit</Button>

// Secondary button
<Button variant="secondary">Cancel</Button>

// Ghost button
<Button variant="ghost">Learn more</Button>

// Small size
<Button size="sm">Small button</Button>

// Large size
<Button size="lg">Large button</Button>

// Disabled
<Button disabled>Disabled button</Button>

// As child (renders as link)
<Button asChild>
  <a href="/home">Go home</a>
</Button>

Card

A container component with consistent styling and flexible padding.

<Card padding="md">
  <h2>Card Title</h2>
  <p>Card content goes here</p>
</Card>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | padding | 'none' \| 'sm' \| 'md' \| 'lg' | 'md' | Internal padding | | children | ReactNode | - | Card content |

Examples

// Standard card
<Card>
  <h3>Default padding</h3>
</Card>

// No padding
<Card padding="none">
  <img src="/banner.jpg" alt="Banner" />
</Card>

// Small padding
<Card padding="sm">Compact content</Card>

// Large padding
<Card padding="lg">
  <h1>Spacious content</h1>
</Card>

Input

A text input component with label, validation states, and helper text.

<Input
  label="Email"
  type="email"
  placeholder="[email protected]"
  helperText="We'll never share your email"
/>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | label | string | - | Input label | | size | 'sm' \| 'md' \| 'lg' | 'md' | Input size | | state | 'default' \| 'error' \| 'success' | 'default' | Validation state | | error | string | - | Error message to display | | helperText | string | - | Helper text below input | | type | string | 'text' | HTML input type | | placeholder | string | - | Placeholder text | | disabled | boolean | false | Disabled state |

Examples

// Basic input
<Input placeholder="Enter your name" />

// With label
<Input label="Email" type="email" />

// With helper text
<Input
  label="Password"
  type="password"
  helperText="Must be at least 8 characters"
/>

// Error state
<Input
  label="Username"
  error="This username is already taken"
/>

// Success state
<Input
  label="Email"
  state="success"
  value="[email protected]"
/>

// Different sizes
<Input size="sm" placeholder="Small" />
<Input size="md" placeholder="Medium" />
<Input size="lg" placeholder="Large" />

// Disabled
<Input disabled placeholder="Disabled input" />

Composition Example

import { Button, Card, Input } from '@arbor-ds/components';

function LoginForm() {
  return (
    <Card padding="lg">
      <h2>Sign In</h2>

      <Input
        label="Email"
        type="email"
        placeholder="[email protected]"
      />

      <Input
        label="Password"
        type="password"
        placeholder="••••••••"
      />

      <Button variant="primary" size="md">
        Sign In
      </Button>

      <Button variant="ghost" size="sm">
        Forgot password?
      </Button>
    </Card>
  );
}

Accessibility

All components are built with accessibility in mind:

  • Button: Proper focus states, keyboard navigation
  • Card: Semantic HTML structure
  • Input: Associated labels, ARIA attributes, error announcements

Customization

Components accept standard HTML attributes and can be customized via:

  1. className: Add custom CSS classes
  2. style: Inline styles (merged with component styles)
  3. Design tokens: Modify tokens to change global appearance

Example:

<Button className="my-custom-button" style={{ marginTop: '1rem' }}>
  Custom styled button
</Button>

TypeScript

Full TypeScript support with exported types:

import type { ButtonProps, CardProps, InputProps } from '@arbor-ds/components';

Development

Build

npm run build

Watch Mode

npm run dev

Tests

npm test

License

MIT