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

ontap-design-system

v0.1.0

Published

Ontap Design System - React components built with Tailwind CSS

Readme

ontap-design-system

A React design system built with TypeScript and Tailwind CSS, extracted from Figma designs.

Installation

npm install ontap-design-system
# or
yarn add ontap-design-system
# or
pnpm add ontap-design-system

Setup

Next.js (App Router)

  1. Import the CSS in your app/layout.tsx:
import 'ontap-design-system/styles';
  1. Use components in your pages:
'use client';

import { Button, Input } from 'ontap-design-system';

export default function Page() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input label="Email" placeholder="Enter your email" />
    </div>
  );
}

Next.js (Pages Router)

  1. Import the CSS in your pages/_app.tsx:
import 'ontap-design-system/styles';
  1. Use components in your pages:
import { Button, Input } from 'ontap-design-system';

export default function Page() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input label="Email" placeholder="Enter your email" />
    </div>
  );
}

React (Create React App / Vite)

  1. Import the CSS in your main entry file:
import 'ontap-design-system/styles';
  1. Use components:
import { Button, Input } from 'ontap-design-system';

function App() {
  return (
    <div>
      <Button variant="primary">Click me</Button>
      <Input label="Email" placeholder="Enter your email" />
    </div>
  );
}

Components

Button

A versatile button component with multiple variants and sizes.

import { Button } from '@ontap/design-system';

// Variants
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outlined">Outlined</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>
<Button variant="neutral">Neutral</Button>

// 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>

// States
<Button loading>Loading...</Button>
<Button disabled>Disabled</Button>

// With icons
<Button leftIcon={<Icon />}>With Left Icon</Button>
<Button rightIcon={<Icon />}>With Right Icon</Button>
<Button iconOnly leftIcon={<Icon />} aria-label="Icon button" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'primary' \| 'secondary' \| 'outlined' \| 'ghost' \| 'link' \| 'neutral' | 'primary' | Button variant style | | size | 'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' | 'md' | Button size | | loading | boolean | false | Whether the button is in loading state | | leftIcon | ReactNode | - | Icon to display before the button text | | rightIcon | ReactNode | - | Icon to display after the button text | | iconOnly | boolean | false | Whether the button should only show icon (no text) | | disabled | boolean | false | Whether the button is disabled |

Input

A form input component with label, helper text, and error states.

import { Input } from '@ontap/design-system';

// Basic usage
<Input label="Email" placeholder="Enter your email" />

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

// Error state
<Input 
  label="Email" 
  error="Please enter a valid email address"
/>

// Success state
<Input 
  label="Email" 
  success="Email is valid"
/>

// With icons
<Input 
  label="Search"
  leftIcon={<SearchIcon />}
  rightIcon={<ClearIcon />}
/>

// Sizes
<Input size="sm" label="Small" />
<Input size="md" label="Medium" />
<Input size="lg" label="Large" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | 'sm' \| 'md' \| 'lg' | 'md' | Input size | | state | 'default' \| 'focused' \| 'filled' \| 'error' \| 'success' \| 'disabled' | 'default' | Input state | | label | string | - | Label text | | helperText | string | - | Helper text displayed below the input | | error | string | - | Error message (overrides helperText when provided) | | success | string | - | Success message | | leftIcon | ReactNode | - | Icon to display on the left side | | rightIcon | ReactNode | - | Icon to display on the right side | | required | boolean | false | Whether the input is required |

Checkbox

A checkbox component with label and supporting text.

import { Checkbox } from '@ontap/design-system';

// Basic usage
<Checkbox label="I agree to the terms" />

// With supporting text
<Checkbox 
  label="Subscribe to newsletter"
  supportingText="Receive updates about new features"
/>

// Indeterminate state
<Checkbox 
  label="Select all"
  indeterminate
/>

// Sizes
<Checkbox size="sm" label="Small" />
<Checkbox size="md" label="Medium" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | 'sm' \| 'md' | 'md' | Checkbox size | | label | string | - | Label text | | supportingText | string | - | Supporting text displayed below the label | | indeterminate | boolean | false | Whether the checkbox is in indeterminate state | | checked | boolean | - | Whether the checkbox is checked | | disabled | boolean | false | Whether the checkbox is disabled |

IconButton

A button component that displays only an icon.

import { IconButton } from '@ontap/design-system';

<IconButton 
  icon={<SearchIcon />}
  aria-label="Search"
/>

// Variants
<IconButton variant="primary" icon={<Icon />} aria-label="Primary" />
<IconButton variant="secondary" icon={<Icon />} aria-label="Secondary" />
<IconButton variant="outlined" icon={<Icon />} aria-label="Outlined" />
<IconButton variant="ghost" icon={<Icon />} aria-label="Ghost" />

// Sizes
<IconButton size="sm" icon={<Icon />} aria-label="Small" />
<IconButton size="md" icon={<Icon />} aria-label="Medium" />
<IconButton size="lg" icon={<Icon />} aria-label="Large" />

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | 'sm' \| 'md' \| 'lg' | 'md' | Icon button size | | variant | 'primary' \| 'secondary' \| 'outlined' \| 'ghost' \| 'link' \| 'neutral' | 'primary' | Button variant style | | icon | ReactNode | - | Icon to display | | loading | boolean | false | Whether the button is in loading state | | aria-label | string | required | Accessible label for the icon button |

Design Tokens

You can import design tokens directly:

import { colors, spacing, typography, shadows, radius } from 'ontap-design-system/tokens';

// Colors
const primaryColor = colors.primary.DEFAULT;
const successColor = colors.status.success.DEFAULT;

// Spacing
const padding = spacing[16]; // '16px'

// Typography
const headingStyle = typography['headline-medium'];

// Shadows
const cardShadow = shadows.low;

// Border radius
const rounded = radius.md;

TypeScript Support

This package includes TypeScript definitions. All components and tokens are fully typed.

Peer Dependencies

  • react >= 18.0.0
  • react-dom >= 18.0.0

License

MIT