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

@junojs/ui

v0.4.3

Published

Common UI components for JunoJS based on Tailwind CSS

Readme

@junojs/ui

A comprehensive, AI-native collection of UI components for JunoJS, powered by Tailwind CSS 4.0.

✨ Features

  • Framework-Native: Built with JunoJS @Component decorators and Proxy-based reactivity.
  • Tailwind CSS 4.0: Leverages the latest utility-first engine for styling and design tokens.
  • Shadow & Light DOM: Supports both encapsulated and style-inheriting components.
  • Accessible: Follows ARIA patterns for complex controls like Modals, Selects, and Popovers.
  • Ultra-Lightweight: Minimal runtime overhead with native Web Component performance.

🚀 Installation

npm install @junojs/ui

🛠️ Usage

1. Style Setup

Import the base styles in your main entry file (e.g., main.ts):

import "@junojs/ui/styles";

2. Component Registration

You can import components globally from the main bundle:

import { ButtonComponent, InputComponent } from "@junojs/ui";

🚀 Performance: Granular Imports

For better tree-shaking and faster development builds, we recommend importing components individually from their dedicated subpaths:

import { ButtonComponent } from "@junojs/ui/button";
import { RowComponent, ColComponent } from "@junojs/ui/grid";
import { AlertComponent } from "@junojs/ui/alert";

[!TIP] JunoJS components automatically call bootstrap() internally upon import. If you import a component subpath, it is immediately registered as a Custom Element in your application.

3. Basic Example

<ui-card>
  <ui-container>
    <ui-row>
      <ui-col span="12">
        <h1 class="text-2xl font-bold">Welcome to JunoJS UI</h1>
        <ui-input label="Full Name" placeholder="John Doe"></ui-input>
        <ui-button variant="primary" @press="handleSubmit">Submit</ui-button>
      </ui-col>
    </ui-row>
  </ui-container>
</ui-card>

📦 Component Catalog

🏗️ Layout

Organize your application structure.

  • ui-container: Max-width wrapper with responsive padding.
    • fluid: (boolean) Full width if true.
  • ui-row: Flexbox container for columns.
    • gap: (number) Gap between columns.
  • ui-col: Responsive column system.
    • span: (1-12) Column width.
    • sm, md, lg, xl: Responsive widths.

📝 Form Controls

Interactive elements for data entry.

  • ui-button: Standard button control.
    • variant: primary | secondary | outline | ghost.
    • disabled: boolean.
  • ui-input: High-level text input.
    • label, placeholder, error, value.
  • ui-select: Single selection dropdown.
    • label, options (Array of {label, value}), value.
  • ui-multi-select: Multi-selection with chips.
    • values (Array of selected values).
  • ui-checkbox & ui-switch: Toggle controls.
    • label, checked.
  • ui-date-picker: Calendar-based date selection.

📊 Data Display

Presenting information elegantly.

  • ui-data-table: Advanced table with sorting, search, and pagination.
    • data, columns.
  • ui-avatar: User profile representation.
    • src, text, variant (circle|square), size.
  • ui-badge: Status markers.
    • variant (info|success|warning|danger).
  • ui-card: Grouped content container.
  • ui-calendar: Month-view picker component.

🧭 Navigation

Moving between views.

  • ui-navbar: Main header navigation with mobile support.
  • ui-menu: Flyout menus and context navigation.
  • ui-link: Styled router-compatible links.
  • ui-pagination: Controls for large data sets.

🔔 Feedback & Overlays

Dynamic UI states and notifications.

  • ui-modal: Centered overlay for critical actions.
    • open (boolean).
  • ui-popover: Contextual floating windows.
  • ui-toast: Global notification system (requires ui-toast-provider).
  • ui-alert: Inline feedback messages for long-standing states.
  • ui-spinner & ui-skeleton: Beautiful loading states.

🎨 Styling with Tailwind CSS 4.0

The library uses Tailwind's Atelier design system by default. You can customize the theme by updating your tailwind.config.ts:

/* your tailwind config */
export default {
  content: ["./node_modules/@junojs/ui/dist/**/*.js", "./src/**/*.{html,ts}"],
  theme: {
    extend: {
      colors: {
        brand: "#2563eb",
      },
    },
  },
};

📜 License

MIT © JunoJS Team