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

@vetaui/atoms

v0.1.2

Published

Veta atoms — the smallest UI building blocks (Button, Input, Badge, Card, Avatar, Spinner, Label, Checkbox, Switch, Slider, Toggle, Separator, Skeleton, Progress, Code, Kbd, ScrollArea, Collapsible, AspectRatio, Rating, Select, Textarea, NumberInput, Mask

Readme

@vetaui/atoms

The smallest reusable UI building blocks in the Veta design system. Every component consumes @vetaui/foundations design tokens — they theme automatically with any Veta preset and respect data-theme="dark" out of the box.

Install

pnpm add @vetaui/foundations @vetaui/atoms

Setup

/* app/globals.css */
@import "tailwindcss";
@import "@vetaui/foundations/css";
@import "@vetaui/foundations/reset";

Usage

import { Button, Input, Badge, Card, CardHeader, CardTitle, CardContent } from "@vetaui/atoms";

export default function Example() {
  return (
    <Card className="max-w-sm">
      <CardHeader>
        <CardTitle>Join the waitlist</CardTitle>
      </CardHeader>
      <CardContent className="space-y-3">
        <Input type="email" placeholder="[email protected]" />
        <Button fullWidth>Notify me</Button>
        <Badge variant="brand">Launching soon</Badge>
      </CardContent>
    </Card>
  );
}

Component catalog

Inputs

| Component | Description | | --- | --- | | Button | Pressable button — 6 variants, 4 sizes, asChild polymorphism | | Input | Text input — size + state variants (default / error / success) | | NumberInput | Numeric input with stepper buttons (min / max / step) | | MaskedInput | Input with IMask-based formatting (phone, date, credit card…) | | Textarea | Multi-line text input — size, state, resize variants | | Checkbox | Accessible checkbox with indeterminate state | | Switch | Toggle switch | | RadioGroup / RadioGroupItem | Accessible radio group | | Select | Native-like dropdown built on Radix Select | | Slider | Range slider | | Rating | Star/custom rating picker with full ARIA |

Display

| Component | Description | | --- | --- | | Badge | Inline status/label chip — 6 variants | | Card + parts | Surface container (CardHeader, CardTitle, CardDescription, CardContent, CardFooter) | | Avatar + parts | User avatar with image + initials fallback | | Spinner | Loading indicator with accessible role="status" | | Skeleton | Animated placeholder | | Progress | Linear progress bar | | Label | Accessible form label | | Separator | Horizontal / vertical divider | | Alert | Inline feedback banner | | Code | Inline <code> with monospace styling | | Kbd | Keyboard shortcut chip |

Layout / Utility

| Component | Description | | --- | --- | | ScrollArea | Custom scrollbar via Radix | | AspectRatio | Responsive ratio-locked box | | Collapsible + parts | Animated expandable section | | VisuallyHidden | Screen-reader-only wrapper | | Table + parts | Bare HTML table with Veta styling |

Variants

All variant systems use class-variance-authority (cva). Override any class with classNametailwind-merge resolves conflicts automatically.

<Button variant="outline" size="sm" className="rounded-full">
  Custom
</Button>

Available button variants: primary, secondary, outline, ghost, link, destructive.

Icon-only buttons

When using a Button with only an icon (no visible text), always provide aria-label:

import { Pencil } from "lucide-react";

<Button variant="ghost" size="icon" aria-label="Edit">
  <Pencil className="size-4" />
</Button>

License

MIT — Dambert Munoz