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

@ttianqii/takaui

v0.1.0

Published

[![npm version](https://img.shields.io/npm/v/@ttianqii/takaui.svg)](https://www.npmjs.com/package/@ttianqii/takaui) [![npm downloads](https://img.shields.io/npm/dm/@ttianqii/takaui.svg)](https://www.npmjs.com/package/@ttianqii/takaui) [![license](https://

Readme

TakaUI

npm version npm downloads license

A modern, customizable React UI component library built with TypeScript, Tailwind CSS, and Radix UI primitives.

Current Version: 0.1.0

✨ What's New in 0.1.0

  • 🎯 Table Alignment Fixed - Table cells now properly align horizontally with headers
  • 📐 Consistent Padding - Checkbox columns and all table content use matching padding (px-3 py-2)
  • Previous Features - All v0.0.9 features (no CSS imports, pure Tailwind, original design preserved)

📦 Installation

Quick Setup (Recommended)

Run the automatic setup wizard:

npm install @ttianqii/takaui
npx takaui-setup

This will:

  • ✅ Configure your Tailwind config automatically
  • ✅ Verify your setup is correct

No CSS imports needed! Components work with pure Tailwind CSS.

Manual Installation

If you prefer manual setup:

# npm
npm install @ttianqii/takaui

# yarn
yarn add @ttianqii/takaui

# pnpm
pnpm add @ttianqii/takaui

# bun
bun add @ttianqii/takaui

That's it! Just make sure you have Tailwind CSS configured in your project.

Peer Dependencies

TakaUI requires React 18+ or React 19+:

# npm
npm install react react-dom

# yarn
yarn add react react-dom

# pnpm
pnpm add react react-dom

# bun
bun add react react-dom

Tailwind CSS Setup

Important: TakaUI uses Tailwind CSS for styling (no CSS imports needed!). You must have Tailwind CSS configured in your project.

1. Install Tailwind CSS (if not already installed)

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

2. Configure Tailwind

Add TakaUI to your tailwind.config.js content paths:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@ttianqii/takaui/dist/**/*.{js,mjs,cjs}"
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

3. Add Tailwind directives

In your main CSS file (e.g., src/index.css):

@tailwind base;
@tailwind components;
@tailwind utilities;

That's it! No CSS imports needed from TakaUI. 🎉

🚀 Quick Start

import { DatePicker, TimePicker, DataTable } from '@ttianqii/takaui'
import '@ttianqii/takaui/styles.css'
import { useState } from 'react'

function App() {
  const [date, setDate] = useState<Date | undefined>(new Date())
  const [dateRange, setDateRange] = useState<{ from: Date; to?: Date }>()
  
  // DataTable example - No TanStack required!
  const columns = [
    { key: 'name', header: 'Name', sortable: true },
    { key: 'email', header: 'Email' },
    { 
      key: 'status', 
      header: 'Status',
      cell: (value) => (
        <span className="px-2 py-1 bg-green-100 text-green-800 rounded">
          {value}
        </span>
      )
    },
  ]
  
  const data = [
    { id: 1, name: 'John', email: '[email protected]', status: 'Active' },
    { id: 2, name: 'Jane', email: '[email protected]', status: 'Active' },
  ]
  
  return (
    <div>
      {/* Single Date Picker */}
      <DatePicker
        date={date}
        onDateChange={setDate}
      />
      
      {/* Date Range Picker - NEW! */}
      <DatePicker
        mode="range"
        dateRange={dateRange}
        onDateRangeChange={setDateRange}
        numberOfMonths={2}
      />
      
      <DataTable 
        data={data} 
        columns={columns}
        showSearch
        searchPlaceholder="Search users..."
      />
    </div>
  )
}

📚 Components

TakaUI includes the following components:

Form & Input Components

  • Calendar - Flexible date picker with multiple selection modes
  • DatePicker - Date picker with popover and custom formatting
    • NEW: Range selection with dual month view
    • NEW: Enhanced hover states for better UX
  • TimePicker - Time picker with 12h/24h formats and timezone support
  • DropdownMenu - Accessible dropdown menu component

Data Display Components

  • DataTable - Independent table with sorting, filtering, and pagination (No TanStack!)
    • ✅ Zero external dependencies (except icons)
    • ✅ Built-in sorting, pagination, search
    • ✅ Custom cell rendering
    • ✅ Loading states
    • Quick Reference - Cheat sheet
  • DataGrid System - ✨ NEW! Modular table components for custom layouts
    • DataGrid, DataGridTable, DataGridPagination
    • DataGridColumnHeader, DataGridRowSelect
    • Perfect for complex table compositions
  • Schedule - Weekly schedule component with custom fields
    • NEW: Supports Date type in metadata
  • WeekNavigator - Week navigation with date range display

Advanced Table System (Optional)

For advanced users who need TanStack Table features:

Base UI Components

All components are built on top of shadcn/ui primitives:

  • Button
  • Input
  • Label
  • Select
  • Popover
  • Dialog/Modal
  • Checkbox
  • Card

📖 Documentation

Detailed documentation for each component:

🎨 Customization

Styling with Tailwind

All components accept a className prop for custom styling:

<Calendar 
  className="rounded-lg shadow-lg border-2 border-blue-500"
  mode="single"
  selected={date}
  onSelect={setDate}
/>

Theming

TakaUI components use CSS variables for theming. You can customize colors in your global CSS:

:root {
  --primary: 220 90% 56%;
  --primary-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  /* Add more custom variables */
}

🔧 TypeScript Support

TakaUI is built with TypeScript and includes full type definitions. All props are fully typed for excellent IDE support.

import type { CalendarProps, DatePickerProps } from '@ttianqii/takaui'

📦 Tree Shaking

TakaUI supports tree shaking. Import only the components you need:

// Good - Only imports Calendar
import { Calendar } from '@ttianqii/takaui'

// Also works - Named imports
import { Calendar, TimePicker, DataTable } from '@ttianqii/takaui'

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT

🔗 Links

📞 Support

For issues and questions:

🎯 Roadmap

  • [ ] Additional form components (Switch, Radio, Slider)
  • [ ] Chart components
  • [ ] Toast notifications
  • [ ] Command palette
  • [ ] Theme switcher
  • [ ] More data display components

Made with ❤️ by @ttianqii