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

@vizejs/ui

v0.818.0

Published

Accessible, headless, Native CSS-first UI primitives

Readme

@vizejs/ui

Accessible Vue SFCs with headless behavior, optional native CSS, and an escape hatch to source ownership. The package does not require Tailwind, a CSS-in-JS runtime, or a component plugin.

@vizejs/ui is under active development. The catalogue is broad, but the component-unit architecture described below is being adopted incrementally. Check each generated reference page's maturity and quality gates before choosing it for a production boundary.

Install

vp install @vizejs/ui

pnpm add @vizejs/ui, npm install @vizejs/ui, and yarn add @vizejs/ui work as usual.

Add one component

Imports are component-scoped so a screen does not retain the whole catalogue:

<script setup lang="ts">
import { ref } from "vue";

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

const saves = ref(0);
</script>

<template>
  <Button type="button" @press="saves += 1">Save draft</Button>
  <output>Saved {{ saves }} times</output>
</template>

This is already complete behavior. It uses native button activation, produces typed props and events, and renders without a visual stylesheet.

Add a visual voice

Load the base tokens, one preset, and only the component styles the screen uses:

import "@vizejs/ui/base.css";
import "@vizejs/ui/theme-preset-paper.css";
import "@vizejs/ui/component-button.css";
<template>
  <main data-vize-theme="paper">
    <Button type="button" variant="solid" tone="accent" size="md"> Save changes </Button>
  </main>
</template>

Seven presets ship as independent CSS assets:

| Preset | Visual direction | | --------------- | ---------------------------------------------------- | | atelier | quiet studio neutrals and restrained depth | | paper | warm ink, fine rules, squared editorial controls | | signal | compact graphite, crisp edges, and monospace details | | midnight | luminous dark surfaces with controlled depth | | play | rounded, buoyant geometry and expressive motion | | high-contrast | severe geometry and maximum state separation | | headless | token boundary without an opinionated visual voice |

Presets change geometry, type, depth, and motion—not only color. Accessibility policy remains constant: visible keyboard focus, coarse-pointer targets, forced-colors mappings, and reduced-motion behavior.

Read the UI styles guide for theme scoping, teleported content, public tokens, and per-component CSS exports.

Customize without coupling to markup

Components expose semantic state rather than generated class names:

<button
  data-vize-ui="button"
  data-state="idle"
  data-variant="solid"
  data-tone="accent"
  data-size="md"
>
  Save changes
</button>

The optional CSS is authored with native nesting and built through Lightning CSS for the declared browser floor. Consumers receive ordinary CSS and do not inherit the package's CSS toolchain.

Customize public properties at the nearest product boundary:

.checkout-actions {
  --vize-ui-button-radius: 0.5rem;
  --vize-ui-button-shadow: none;
  --vize-ui-button-hover-lift: 0px;

  [data-vize-ui="button"] {
    letter-spacing: 0.01em;
  }
}

Application CSS outside Vize's cascade layers wins normally. Tailwind, UnoCSS, CSS Modules, scoped styles, and plain stylesheets can all consume the same semantic attributes; none is privileged by the component API.

Renderers and frameworks

The package's public implementation is real Vue SFC source. The component contract is checked across DOM, SSR, hydration, and renderer compilation.

| Host | Integration path | | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | Vue / Vite+ | Import public component subpaths from any SFC. | | Nuxt | Import directly or enable @vizejs/nuxt UI auto-registration. See the Nuxt guide. | | Void | Import from an @void/vue page; optional CSS remains in the route graph. See the Void guide. | | Vapor | Keep Vue runtime, compiler, and server renderer on the same qualified version. See the Vapor guide. |

The standard DOM and SSR builds support Vue 3.5+. Vapor is experimental and currently requires Vue 3.6.0-rc.11 or later. The qualified Vapor version is rc.11; use that version for the runtime, compiler, and server renderer together.

Vue rc.9 throws while hydrating a Vapor root containing CSS custom properties under a VDOM parent. Later releases also changed slot fallback markup between SSR and hydration. Mixing Vue 3.5 server output with a newer Vapor client can therefore produce hydration warnings even when application state agrees.

Some catalogue entries still have tracked Vapor failures. Renderer compatibility does not certify every legacy component; each generated reference page lists the gates that its source currently declares.

Maintainers can replay the original rc.9 comparison with:

VIZE_UI_VAPOR_RUNTIME=reference vp run --filter './npm/ui' check:vapor-runtime

Own the source

When a product needs complete control, pull the whole component unit:

vize lib pull button

The unit keeps its SFC, public types, optional stylesheet, behavior contract, examples, stories, and tests together. Source distribution is an ownership choice, not a different component model.

Documentation as executable evidence

The component catalogue is generated from the same metadata, typed SFCs, behavior tables, and colocated examples used by the package build. Every component page includes:

  • a copyable public-import SFC and live browser preview;
  • extracted props, events, slots, and exposed members;
  • authored usage guidance when the component unit supplies it;
  • the normative state-by-input behavior table;
  • declared renderer, type, tree-shaking, and bundle gates.

Start with the Button reference, or read the source architecture when contributing a component.