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

@treeui/vue

v0.7.0

Published

Vue 3 component package for TreeUI.

Downloads

464

Readme

@treeui/vue

Vue 3 component library with 40+ accessible, themeable components built on design tokens.

Install

pnpm add @treeui/vue
# or
npm install @treeui/vue

Install @treeui/tokens only when you need direct access to the token package or want to use the theme CSS outside the Vue component layer.

Setup

import { createApp } from 'vue'
import TreeUI from '@treeui/vue'
import '@treeui/vue/style.css'

const app = createApp(App)
app.use(TreeUI)
app.mount('#app')

If your app uses toasts, mount TToastProvider once near the root before calling useToast().

Or import components individually:

import { TButton, TInput, TModal } from '@treeui/vue'
import '@treeui/vue/style.css'

Consumer checklist

  • Install @treeui/vue
  • Import @treeui/vue/style.css once
  • Use app.use(TreeUI) or named imports
  • Mount TToastProvider once near the app root if you use useToast()
  • Use TFormField as the wrapper for labels, hints, and errors

Components

Form

TInput · TTextarea · TCheckbox · TCombobox · TFileUpload · TRadio · TRadioGroup · TSelect · TMultiSelect · TNumberInput · TDatePicker · TDateTimePicker · TSwitch · TFormField · TToggleGroup · TMarkdownEditor

Layout

TContainer · TGrid · TStack · TSidebar · TNavMenu · TNavbar / TAppBar · TAccordion · TAccordionItem · TCard · TDivider · TTable · TTabs · TTabList · TTab · TTabPanel · TBreadcrumb · TBreadcrumbItem · TSelectableList · TTreeView · TSteps / TStepper · TPricing · TPricingCard

Display

TBadge · TAlert · TAvatar · TEmptyState · TTag · TTimeline · TSpinner · TProgress · TSkeleton · TStat

Overlay & Interaction

TButton · TModal · TConfirmDialog · TDrawer · TDropdown · TPopover · TTooltip · TContextMenu · TPagination · TToast · TToastProvider

Table composition

TTable stays focused on structured listing. Filters, toolbars, bulk actions, and pagination are intended to be composed around it, with TPagination used separately when needed.

Use #cell-<key> and #header-<key> slots when a column needs derived content or custom markup.

Theming

TreeUI uses CSS custom properties (--tree-*) for all styling. Light theme is applied by default.

Dark mode

Dark mode activates automatically via prefers-color-scheme: dark. To control it explicitly:

<!-- Force dark -->
<html data-tree-theme="dark">

<!-- Force light -->
<html data-tree-theme="light">

Programmatic control

// Toggle theme
document.documentElement.setAttribute('data-tree-theme', 'dark')

Compatibility aliases

All components are also exported with the Tree prefix (e.g. TreeButton, TreeInput) for backwards compatibility.

Conventions

  • Primary docs and examples use the T prefix for public exports.
  • Tree<Name> aliases remain available for migration and compatibility.
  • TNavbar / TAppBar and TSteps / TStepper are alias pairs for the same implementations.
  • Page-level assemblies that are mostly layout stay documented as recipes until they need a dedicated semantic API.
  • Overlays such as TModal, TDrawer, and TPopover support controlled open state; TModal works with v-model:open.
  • TSelect accepts string or number values.
  • TBreadcrumbItem accepts href for anchors and to for vue-router projects.
  • TBadge keeps visual variants and can add semantic meaning with tone.
  • TStat includes a loading state for built-in placeholders.

Semantic aliases in docs

Some docs use familiar product terms as aliases for existing TreeUI patterns. These are documentation aliases only, not extra exports.

  • Snackbar / Notification -> TToast
  • Banner -> TAlert
  • Collapsible / Details -> TAccordion with type="single" and collapsible
  • App bar -> TNavbar / TAppBar
  • Stepper -> TSteps / TStepper

Docs-first patterns

Some repeated app UI intentionally stays documented as composition guidance instead of becoming extra exports:

  • Stat groups: TGrid + TStat
  • Section headers: heading + TStack + optional TBadge or TButton
  • Subpanels: TCard, especially variant="soft"
  • Stacked cards: TCard slots + TTag / TBadge / actions
  • Eyebrow text: typography recipe using existing tokens
  • Form stacks: TStack + TGrid + TFormField
  • Rankings: TTable or TSelectableList
  • Action panels: TAlert + TCard + TButton
  • Color fields: TFormField + native input[type="color"]
  • Tag inputs: TFormField + TInput + removable TTag
  • Router-backed tabs: TTabs + app route state
  • Charts: TCard + TStack + your preferred chart library

TypeScript

Full TypeScript support with exported types:

import type { TreeSize, TreeVariant } from '@treeui/vue'

Documentation

See the full component docs and interactive playground at the Storybook site.

License

MIT