Socket
Book a DemoInstallSign in
Socket

@rnwonder/react-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnwonder/react-date-picker

A lightweight, customizable, and accessible date picker component for React applications.

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
68
871.43%
Maintainers
1
Weekly downloads
 
Created
Source

@rnwonder/react-date-picker

A simple and reusable Datepicker component for ReactJS (Demo)

Documentation

Screenshot 2023-05-20 084944.jpg Screenshot 2023-05-20 084945.jpg Screenshot 2023-05-20 084946.jpg

Installation

npm i @rnwonder/react-date-picker
yarn add @rnwonder/react-date-picker
pnpm add @rnwonder/react-date-picker

This package depends on react and react-dom so you need to have them installed

Usage

import '@rnwonder/react-date-picker/dist/style.css'
import DatePicker from "@rnwonder/react-date-picker";

const App = () => {
  return (
    <DatePicker
      onChange={(data) => {
        if (data.type === "range") {
          console.log(data.startDate, data.endDate);
        }
        if (data.type === "single") {
          console.log(data.selectedDate);
        }
        if (data.type === "multiple") {
          console.log(data.multipleDates);
        }
      }}
    />
  );
};

Styling With Props, Classes, or Attributes

  • You can style the datepicker using class props, color props, default css class names or data attributes.
  • Check out the documentation for more details

Themes

  • We have a growing list of themes you can use. Please check them out here

Other Datepicker Props

  • We have some other props that can be useful when working with the datepicker. Please check them out here

Formatting

  • Formatting the datepicker input label is done with the formatInputLabel, formatInputLabelRangeStart, formatInputLabelRangeEnd, localOptions and locale props
  • Check out the documentation for more details

Utility Functions

  • We have some utility functions that can be useful when working with the datepicker. Please check them out here

Contributing

  • Send a message to the author on X if you have any questions or suggestions. Don't forget to follow me on twitter.
  • Feel free to open an issue here if you run into any problem while using this library.
  • You can also contribute to this project here.

Buy Me A Coffee

Keywords

react

FAQs

Package last updated on 16 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.