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

@tachui/forms

v0.8.1-alpha

Published

Unified form components and validation system for tachUI (formerly @tachui/forms + @tachui/advanced-forms)

Readme

@tachui/forms

Comprehensive form components and validation system for tachUI - unified package combining all form functionality.

What's New in v2.0

  • Unified Package: All 27 form components in one optimized package
  • 20% Bundle Reduction: From 488KB to ~390KB through build optimization
  • Tree Shaking: Import only the components you need
  • Backwards Compatible: Maintains all existing APIs

Installation

pnpm add @tachui/forms

Quick Start

import { Form, TextField, DatePicker, validation } from '@tachui/forms'

// Or use granular imports for optimal bundle size
import { TextField } from '@tachui/forms/text-input'
import { DatePicker } from '@tachui/forms/date-picker'
import { required, email } from '@tachui/forms/validation'

Components (27 total)

Form Container (2 components)

  • Form - Form state management and submission
  • FormSection - Logical grouping of form fields

Text Input (14 components)

  • TextField - Basic text input
  • TextArea - Multi-line text input
  • EmailField - Email validation and formatting
  • PasswordField - Password input with visibility toggle
  • SearchField - Search input with clear button
  • URLField - URL validation and formatting
  • PhoneField - Phone number formatting and validation
  • NumberField - Numeric input with validation
  • CreditCardField - Credit card formatting and validation
  • SSNField - Social Security Number formatting
  • PostalCodeField - Postal/ZIP code validation
  • DateField - Simple date text input
  • TimeField - Time input and validation
  • ColorField - Color picker input

Selection (8 components)

  • Checkbox - Single checkbox input
  • CheckboxGroup - Multiple checkbox group
  • Switch - Toggle switch input
  • Radio - Single radio button
  • RadioGroup - Radio button group
  • Select - Single select dropdown
  • MultiSelect - Multiple selection dropdown
  • Combobox - Searchable select input

Advanced (3 components)

  • DatePicker - Rich calendar interface
  • Stepper - Numeric increment/decrement
  • Slider - Range input with marks

Tree-Shaking Examples

// Import entire package (390KB)
import { TextField, DatePicker, validation } from '@tachui/forms'

// Import specific categories (~180KB for text inputs)
import * as TextInputs from '@tachui/forms/text-input'
import * as Validation from '@tachui/forms/validation'

// Import individual components (~20-30KB each)
import { TextField } from '@tachui/forms/text-input'
import { required, email } from '@tachui/forms/validation'

Migration from v1.x

From @tachui/forms + @tachui/advanced-forms

// Old approach (488KB total)
import { TextField, Form } from '@tachui/forms'
import { DatePicker, Stepper } from '@tachui/advanced-forms'

// New unified approach (390KB total)
import { TextField, Form, DatePicker, Stepper } from '@tachui/forms'

// Or with tree-shaking (as needed)
import { TextField, Form } from '@tachui/forms/text-input'
import { DatePicker } from '@tachui/forms/date-picker'
import { Stepper } from '@tachui/forms/advanced'

Backwards Compatibility

All existing APIs remain unchanged. Migration is optional and can be done incrementally.

Validation System

Comprehensive validation with 20+ built-in rules:

import { validation } from '@tachui/forms'

const schema = validation.object({
  email: validation.string().email().required(),
  password: validation.string().min(8).required(),
  confirmPassword: validation.string().matches('password'),
  age: validation.number().min(18).max(120),
})

Bundle Size Comparison

| Package | v1.x (Split) | v2.0 (Unified) | Savings | | -------------- | -------------- | -------------- | --------- | | Text Inputs | 149KB | 120KB | 19% | | Advanced Forms | 268KB | 80KB | 70% | | Date Picker | Included above | 60KB | Optimized | | Total | 488KB | 390KB | 20% |

Documentation