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

ajo-ui

v0.1.2

Published

Unstyled accessible UI components for Ajo

Downloads

93

Readme

ajo-ui

Unstyled, accessible component families for Ajo applications.

Components provide semantic markup, ARIA relationships, keyboard behavior, stable styling hooks, and controlled or uncontrolled state. Use them directly to build an application UI or a reusable theme.

Install

pnpm add ajo ajo-ui

ajo-ui requires ajo ^0.1.35.

The package is authored in TypeScript and ships generated .d.ts declarations for the root and every component-family subpath. Published runtime and type entrypoints resolve from dist/; implementation source is not required in an installed package.

Usage

Import a component family from its subpath:

import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from 'ajo-ui/accordion'
import { Popover, PopoverContent, PopoverTrigger } from 'ajo-ui/popover'

The package root exports every component family:

import { Tabs, TabsContent, TabsList, TabsTrigger } from 'ajo-ui'
import { Tabs, TabsContent, TabsList, TabsTrigger } from 'ajo-ui/tabs'

export default () => (
  <Tabs defaultValue="overview">
    <TabsList aria-label="Project">
      <TabsTrigger value="overview">Overview</TabsTrigger>
      <TabsTrigger value="activity">Activity</TabsTrigger>
    </TabsList>

    <TabsContent value="overview">Project overview</TabsContent>
    <TabsContent value="activity">Recent activity</TabsContent>
  </Tabs>
)

Components

| Group | Family subpaths | |---|---| | Foundations | direction, field, input-group | | Disclosure and layout | accordion, collapsible, dialog, drawer, resizable, sidebar | | Navigation and menus | command, context-menu, menu, menubar, navigation-menu, tabs, toolbar | | Inputs and selection | calendar, checkbox, checkbox-group, input-date, input-otp, radio-group, select, slider, switch, toggle, toggle-group | | Overlays and feedback | popover, progress, toast, tooltip | | Data and display | avatar, carousel, chart, data-table, message-scroller, virtual-list |

Component Utilities

ajo-ui/utils provides helpers and types for custom components, themes, and adapters:

import {
  ariaChecked,
  bool,
  clx,
  flag,
  popupStyle,
  stlx,
  text,
  triggerAttrs,
  withSlot,
} from 'ajo-ui/utils'
import type {
  CheckedState,
  FixedArgs,
  OmitArg,
  PopupPlacement,
  PopupPosition,
  StyleInput,
  StyleObject,
  StyleValue,
} from 'ajo-ui/utils'

| Area | Exports | |---|---| | Popup composition | PopupPlacement, PopupPosition, triggerAttrs, popupStyle | | Component adapters | OmitArg, FixedArgs, withSlot | | Checked state | CheckedState, ariaChecked, syncCheckedState | | Values and filtering | bool, flag, text, strings, matchesTokens, defaultResultsLabel, resolveFilter, toNumber, emptyChildren | | Classes and styles | clx, stlx, StyleValue, StyleObject, StyleInput |

OmitArg removes named properties while preserving Ajo's open argument index. FixedArgs marks properties supplied by an adapter.

Styling

Components render semantic elements, ARIA attributes, data-slot markers, and state attributes. Apply visual styles through class, family class maps, or state-aware class callbacks such as dayClassName.

Boolean state attributes use data-x="true" when active. Common data-state values include open, closed, checked, unchecked, active, inactive, on, and off.

State

Controlled and uncontrolled families use matching prop groups:

  • value, defaultValue, onValueChange(value, event)
  • open, defaultOpen, onOpenChange(open, event)
  • checked, defaultChecked, onCheckedChange(checked, event)

Localization and Direction

User-visible and assistive-technology strings have English defaults and component args for replacement.

DirectionProvider supplies the default text direction. Components with horizontal keyboard navigation also accept a dir override.

Component-family subpaths and root imports are side-effect-free and tree-shakeable.