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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ceeejeey/qt-ui

v1.5.0

Published

Reusable React component library with TypeScript and Tailwind CSS v4

Downloads

16

Readme

qt-ui - React Component Library

A lightweight, customizable React component library built with TypeScript, Tailwind CSS v4, and Vite. The qt-ui library provides reusable components like Navbar to accelerate your development process.

Features

  • TypeScript Support: Fully typed components for a better developer experience.
  • Tailwind CSS: Styled with Tailwind CSS v4 for easy customization.
  • Lightweight: Optimized for performance with minimal bundle size.
  • Reusable Components: Includes Navbar and more to come!

Installation

To use qt-ui in your project, install it along with its peer dependencies:

npm i @ceeejeey/qt-ui react react-dom

Usage

Import the components and styles into your React application. Here's an example with the Navbar component:

import { Navbar } from 'qt-ui';
import 'qt-ui/dist/style.css';

function App() {
  return (
    <Navbar
      title="My App"
      onMenuClick={() => alert('Menu clicked!')}
      className="bg-blue-500 text-white p-4"
    />
  );
}

export default App;

Notes

  • The className prop allows you to apply additional Tailwind CSS classes.
  • The onMenuClick prop is optional and triggers a callback when the menu button is clicked.
  • Import qt-ui/dist/style.css to apply the default styles.

Props

The Navbar component accepts a variety of props for customization. Below are the available interfaces and their properties:

NavLink Interface

Defines individual navigation link items.

  • href (string, required): The URL or route for the link.
  • label (string, required): The text displayed for the link.
  • ariaLabel (string, optional): Accessibility label for the link.
  • className (string, optional): Additional Tailwind CSS classes for the link.
  • isButton (boolean, optional): Whether the link should be styled as a button (e.g., for actions like "Help Desk").

NavbarProps Interface

Customizes the Navbar component's appearance and behavior.

  • Logo Customization:

    • logo (ReactNode, optional): A custom logo component or element.
    • logoText (string, optional): Fallback text if no logo is provided (defaults to "qt-ui").
    • logoHref (string, optional): The link destination for the logo (defaults to "/").
    • logoClassName (string, optional): Tailwind CSS classes for the logo.
    • logoAriaLabel (string, optional): Accessibility label for the logo (defaults to "Home").
  • Navigation Links:

    • links (NavLink[], optional): An array of NavLink objects for navigation items.
  • Profile Button Customization:

    • profileIcon (ReactNode, optional): A custom profile icon component or element.
    • profileAriaLabel (string, optional): Accessibility label for the profile button (defaults to "User Profile").
    • profileClassName (string, optional): Tailwind CSS classes for the profile button.
  • Styling Customization:

    • navClassName (string, optional): Base Tailwind CSS classes for the nav element.
    • containerClassName (string, optional): Tailwind CSS classes for the container div.
    • mobileMenuClassName (string, optional): Tailwind CSS classes for the mobile menu.
    • mobileToggleClassName (string, optional): Tailwind CSS classes for the mobile toggle button.
    • linkClassName (string, optional): Default Tailwind CSS classes for links.
    • linkHoverClassName (string, optional): Tailwind CSS classes for link hover states (defaults to "hover:text-blue-200").
    • scrolledClassName (string, optional): Tailwind CSS classes when the nav is scrolled (defaults to "bg-opacity-90 shadow-md").
    • mobileMenuOpenClassName (string, optional): Tailwind CSS classes when the mobile menu is open (defaults to "flex").
  • Behavioral Customization:

    • scrollThreshold (number, optional): Pixels to scroll before applying scrolledClassName (defaults to 50).
    • mobileBreakpoint (string, optional): Tailwind breakpoint for mobile behavior (e.g., 'lg', 'md', defaults to "lg").
    • onClick (function, optional): Callback function triggered on nav or mobile toggle click.

Peer Dependencies

qt-ui relies on the following peer dependencies (version ^19.1.0):

  • react
  • react-dom

Ensure these are installed in your project to avoid runtime errors.

Demo

Try qt-ui in action with the included demo app!

Setup

  1. Clone the repository:
    git clone https://github.com/Ceeejeey/qt-ui-npm-package.git
    cd qt-ui
  2. Install dependencies:
    cd demo
    npm install
  3. Start the demo:
    npm run dev
  4. Visit http://localhost:5173 in your browser to see the Navbar component.

Building the Library

To build the qt-ui library locally:

cd qt-ui
npm install
npm run build

The build outputs are generated in the dist folder.

Testing

Run the tests with Vitest:

npm test

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Built with ❤️ by Ceeejeey!
  • Thanks to the tools like Vite and Tailwind CSS for making this possible.