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

datepickerplugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datepickerplugin

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

latest
Source
npmnpm
Version
0.2.4
Version published
Weekly downloads
17
1600%
Maintainers
1
Weekly downloads
 
Created
Source

DATEPICKER

A simple and reusable Datepicker component for React

datepicker

Installation

The package can be installed via npm

npm install datepickerplugin --save

Or via yarn

yarn add datepickerplugin
// react
import { useState } from 'react';
import {DatePicker}  from 'datepickerplugin';

export default function Component() {
    const [ date, setDate ] = useState('');

    return (
        <div>
            <label>Date Picker</label>
            <DatePicker onChange={(value) => setDate(value)}/>
        </div>
    )
}

Props

Prop nameDescriptionDefault valueExample values
onChangeFunction called when the user picks a valid date.n/aonChange={(value) => setDate(value)}
disabledWhether the date picker should be disabled falsetrue
requiredWhether date input should be requiredfalsetrue

Local Development

The master branch contains the latest version of the Datepicker component.

To begin local development:

npm install
npm build-dev
npm start

The last step starts documentation app as a simple webserver on http://localhost:3000.

Keywords

  • ReactJS
  • Date Picker
  • Calendar
  • Date
  • React Component

Keywords

datepicker

FAQs

Package last updated on 10 Jun 2022

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