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

@lootvm/ui

v0.1.7

Published

LootVM UI — Component Library

Readme

@lootvm/ui

React component library built with Radix UI, Tailwind CSS, and Class Variance Authority.

46 accessible, composable components with LootVM design tokens. Tree-shakeable subpath exports for optimal bundle size.

Requirements: React 18 or 19 · Tailwind CSS 4

Installation

npm install @lootvm/ui

Setup

1. Design tokens

Import LootVM CSS variables into your global stylesheet. If you use the CLI, lootvm-ui init copies lootvm-ui.css automatically. Otherwise, add the token file from the lootvm-ui CLI package and import it:

/* src/app/globals.css */
@import "../styles/lootvm-ui.css";

2. Tooltip provider

Wrap your app (or sections using tooltips) with TooltipProvider:

import { TooltipProvider } from "@lootvm/ui/tooltip";

export function App({ children }: { children: React.ReactNode }) {
  return <TooltipProvider>{children}</TooltipProvider>;
}

3. Toast (optional)

Add <Toaster /> to your root layout when using toast notifications:

import { Toaster } from "@lootvm/ui/toaster";

Usage

Barrel import

import { Button, Dialog, DialogContent, DialogTrigger } from "@lootvm/ui";

Subpath import (recommended for tree-shaking)

import { Button } from "@lootvm/ui/button";
import { Dialog, DialogContent, DialogTrigger } from "@lootvm/ui/dialog";

Example

import { Button } from "@lootvm/ui/button";

export function SubmitForm() {
  return (
    <Button variant="primary" isLoading={false}>
      Save changes
    </Button>
  );
}

Component catalog

Form & input

| Component | Import path | |-----------|-------------| | Button | @lootvm/ui/button | | Checkbox | @lootvm/ui/checkbox | | Field | @lootvm/ui/field | | Fieldset | @lootvm/ui/fieldset | | Form | @lootvm/ui/form | | Input | @lootvm/ui/input | | Input OTP | @lootvm/ui/input-otp | | Label | @lootvm/ui/label | | Radio | @lootvm/ui/radio | | Radio Group | @lootvm/ui/radio-group | | Select | @lootvm/ui/select | | Slider | @lootvm/ui/slider | | Switch | @lootvm/ui/switch | | Toggle | @lootvm/ui/toggle | | Toggle Group | @lootvm/ui/toggle-group |

Overlays & feedback

| Component | Import path | |-----------|-------------| | Alert Dialog | @lootvm/ui/alert-dialog | | Dialog | @lootvm/ui/dialog | | Drawer | @lootvm/ui/drawer | | Hover Card | @lootvm/ui/hover-card | | Popover | @lootvm/ui/popover | | Progress | @lootvm/ui/progress | | Sheet | @lootvm/ui/sheet | | Toast | @lootvm/ui/toast | | Toaster | @lootvm/ui/toaster | | Tooltip | @lootvm/ui/tooltip | | useToast | @lootvm/ui/use-toast |

Data display & navigation

| Component | Import path | |-----------|-------------| | Accordion | @lootvm/ui/accordion | | Avatar | @lootvm/ui/avatar | | Badge | @lootvm/ui/badge | | Breadcrumb | @lootvm/ui/breadcrumb | | Calendar | @lootvm/ui/calendar | | Card | @lootvm/ui/card | | Carousel | @lootvm/ui/carousel | | Chart | @lootvm/ui/chart | | Collapsible | @lootvm/ui/collapsible | | Command | @lootvm/ui/command | | Context Menu | @lootvm/ui/context-menu | | Dropdown Menu | @lootvm/ui/dropdown-menu | | Menubar | @lootvm/ui/menubar | | Navigation Menu | @lootvm/ui/navigation-menu | | Pagination | @lootvm/ui/pagination | | Resizable | @lootvm/ui/resizable | | Scroll Area | @lootvm/ui/scroll-area | | Separator | @lootvm/ui/separator | | Sidebar | @lootvm/ui/sidebar | | Table | @lootvm/ui/table | | Tabs | @lootvm/ui/tabs | | Toolbar | @lootvm/ui/toolbar |

Utilities

| Export | Import path | |--------|-------------| | cn | @lootvm/ui/utils |

LootVM vs shadcn/ui

| | shadcn/ui | LootVM UI | |---|-----------|-----------| | Button default variant | default | primary | | Form primitives | — | Field, Fieldset | | Loading state | — | Button isLoading prop | | Distribution | Copy-to-project only | npm package or CLI copy |

Use variant="primary" instead of shadcn's default. Prefer Field + Label + Input for accessible forms.

Alternative: copy-to-project

For full source ownership (shadcn-style), use the CLI instead of npm:

npx lootvm-ui init
npx lootvm-ui add button dialog

See lootvm-ui on npm for CLI and MCP documentation.

Peer dependencies

{
  "react": "^18.0.0 || ^19.0.0",
  "react-dom": "^18.0.0 || ^19.0.0"
}

Links

License

MIT