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

@kalyx/react

v1.1.0

Published

Headless, SSR-safe React DatePicker / RangePicker / TimePicker / DateTimePicker — ISO 8601 UTC strings, IANA timezone support, ≤16 KB gzipped

Downloads

1,651

Readme

@kalyx/react

The headless React DatePicker, finally complete. Zero CSS · SSR-safe · ~15.63 KB gzip (≤ 16 KB ceiling).

npm Bundle TypeScript License

Composable React primitives for seven date-related surfaces — single date, date range, time, date+time, month, year, and week — under one Radix-style dot-notation API. Pair with Tailwind, shadcn/ui, Chakra, or any CSS.

📚 Full docs: kalyx-docs-site.vercel.app · 한국어

Install

pnpm add @kalyx/react
# npm install @kalyx/react
# yarn add @kalyx/react

Requires React ≥ 19.

Comparing alternatives? See the feature matrix — we hold every cell honestly, including where react-datepicker / react-aria / MUI win.

Quick example

import { useState } from 'react';
import { DatePicker, type ISODateString } from '@kalyx/react';

export function BookingField() {
  const [date, setDate] = useState<ISODateString | null>(null);
  return (
    <DatePicker value={date} onChange={setDate}>
      <DatePicker.Input placeholder="YYYY-MM-DD" />
      <DatePicker.Trigger />
      <DatePicker.Popover>
        <DatePicker.Calendar />
      </DatePicker.Popover>
    </DatePicker>
  );
}

Value is always an ISODateString | null — UTC-safe, no Date objects.

What you get

import {
  DatePicker,        // single date
  RangePicker,       // date range + presets
  TimePicker,        // hour + minute (+ seconds)
  DateTimePicker,    // date + time combined
  MonthPicker,       // month-only selection
  YearPicker,        // year-only selection
  WeekPicker,        // full-week range selection
  useDatePicker,     // hook for custom UIs
  useRangePicker,
  useTimePicker,
  DateFnsAdapter,    // default adapter (re-exported from @kalyx/core)
} from '@kalyx/react';

Features

  • Zero CSS — no stylesheets to import.
  • Composition — Radix-style <DatePicker.Input />, <DatePicker.Calendar />, etc.
  • SSR-safe — tested on Next.js App Router.
  • ISO 8601 UTC strings — eliminates Date-object footguns.
  • Accessible — ARIA roles, keyboard navigation, axe-clean.
  • Tree-shakable — pay only for the components you render.
  • TypeScript strict — no any, full type exports.

Styling

Every sub-component forwards className, style, and ref, and accepts a classNames slot map:

<DatePicker.Calendar
  classNames={{
    day: 'h-8 w-8 rounded hover:bg-neutral-100',
    daySelected: 'bg-indigo-600 text-white',
    dayToday: 'ring-1 ring-indigo-400',
  }}
/>

Full recipes: Tailwind, shadcn/ui, React Hook Form.

Bring your own adapter

Already shipping dayjs, luxon, or Temporal? Skip the bundled date-fns and import from @kalyx/react/headless instead — same component surface, no auto-installed adapter:

import { DatePicker } from '@kalyx/react/headless';
import { DayjsAdapter } from './my-dayjs-adapter'; // your DateAdapter

<DatePicker adapter={DayjsAdapter} value={iso} onChange={setIso}>
  <DatePicker.Calendar />
</DatePicker>

If you forget the adapter prop, the Root throws a clear error telling you exactly what's missing. The full how-to (interface, dayjs reference implementation, edge cases) is in the adapters guide.

Documentation

License

MIT