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

bp-mui-date-range-picker

v1.0.0

Published

Blueprint-style date range input for React with CSS-variable theming

Readme

bp-mui-date-range-picker

Blueprint-style DateRangeInput for React 19 with CSS-variable theming and slot overrides.

Install

npm install bp-mui-date-range-picker

Peer dependencies: react and react-dom 19+. Use the latest React 19 patch release (19.2.6 or newer) — earlier 19.x releases are affected by React Server Components security advisories.

Styling

Import the stylesheet once:

import 'bp-mui-date-range-picker/styles.css';

The component is themed with CSS custom properties — override any --drp-* token globally, on a wrapper, or per instance. No Tailwind required.

.my-app {
  --drp-accent: #db2777;
  --drp-radius: 12px;
}

Per-instance:

<div style={{ '--drp-accent': '#16a34a' } as React.CSSProperties}>
  <DateRangeInput />
</div>

Tokens: colors (--drp-accent, --drp-accent-fg, --drp-bg, --drp-fg, --drp-muted-fg, --drp-border, --drp-hover-bg, --drp-range-bg, --drp-range-fg, --drp-today-fg, --drp-disabled-fg, --drp-shortcut-active-bg, --drp-shortcut-active-fg, --drp-invalid-border, --drp-invalid-ring, --drp-focus-ring), shape/size (--drp-radius, --drp-day-size, --drp-input-height, --drp-nav-button-size, --drp-popover-shadow, --drp-panel-padding, --drp-shortcuts-width, --drp-gap), typography (--drp-font-family, --drp-font-size, --drp-font-size-sm, --drp-font-weight-medium).

Usage

import { useState } from 'react';
import { DateRangeInput, type DateRange } from 'bp-mui-date-range-picker';

function Example() {
  const [range, setRange] = useState<DateRange>([null, null]);
  return (
    <DateRangeInput
      value={range}
      onChange={setRange}
      shortcuts
      contiguousCalendarMonths
      placeholder={{ start: 'Start', end: 'End' }}
    />
  );
}

Slot overrides

Override any slot through the classNames prop. Consumer classes win Tailwind conflicts:

<DateRangeInput
  classNames={{
    input: 'rounded-lg focus:ring-2 focus:ring-indigo-500',
    daySelected: 'bg-indigo-600 text-white',
    dayRangeMiddle: 'bg-indigo-100',
  }}
/>

See the Slot type for the full slot list.

Slot classes always win over the --drp-* theme (the base styles use zero-specificity :where() selectors).