New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ck-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ck-datepicker

Production-grade DatePicker with zero dependencies. Modular architecture with slots and hooks.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

ck-datepicker

Production-grade DatePicker with zero dependencies. Modular architecture with slots, hooks, and plugin support.

Installation

npm install ck-datepicker

Quick Start

import { BWDatePicker } from "ck-datepicker";
import "ck-datepicker/css";

const picker = new BWDatePicker("#date-input");

With Plugins

Plugins are separate packages:

npm install @bw-ui/plugin-disable-weekends
npm install @bw-ui/plugin-min-max-date
import { BWDatePicker } from "ck-datepicker";
import { DisableWeekendsPlugin } from "@bw-ui/plugin-disable-weekends";
import { MinMaxDatePlugin } from "@bw-ui/plugin-min-max-date";

const picker = new BWDatePicker("#date")
  .use(DisableWeekendsPlugin)
  .use(MinMaxDatePlugin, {
    min: new Date(),
    max: new Date(2025, 11, 31),
  });

Features

  • ✅ Zero dependencies
  • ✅ ~15KB minified
  • ✅ Plugin system
  • ✅ Custom slots (templates)
  • ✅ Hooks for customization
  • ✅ Full keyboard navigation
  • ✅ ARIA accessible
  • ✅ TypeScript support

API

Constructor

const picker = new BWDatePicker(element, options);

Options

OptionTypeDefaultDescription
initialDateDatenullPre-selected date
formatstring'MMM D, YYYY'Display format
slotsobject{}Custom slot renderers
pluginsarray[]Plugins to install

Methods

picker.open(); // Open picker
picker.close(); // Close picker
picker.getSelectedDate(); // Get selected date
picker.setSelectedDate(d); // Set selected date
picker.use(Plugin, opts); // Install plugin
picker.destroy(); // Cleanup

Events

picker.on("date:select", ({ date }) => {});
picker.on("picker:open", () => {});
picker.on("picker:close", () => {});

Available Plugins

PackageDescription
@bw-ui/plugin-disable-weekendsDisable Saturday & Sunday
@bw-ui/plugin-min-max-dateRestrict to date range

License

MIT © BW UI

Keywords

datepicker

FAQs

Package last updated on 10 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts