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

modsen-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modsen-datepicker

React datepicker library

latest
npmnpm
Version
1.0.5
Version published
Weekly downloads
8
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

Date Picker library for React

Stylish Date Picker with built-in ToDo-list for React

Storybook

Here you can see the possibilities of date picker library and options for settings.

Installation

$ npm install modsen-datepicker --save

Usage

To get started, you need to import the DatePicker or RangeDatePicker component from the modsen-datepicker library.

import { DatePicker, RangeDatePicker } from 'modsen-datepicker';

const App = () => {
	return (
		<>
			<DatePicker />
			<RangeDatePicker />
		</>
	);
};

Configuration

Getting date from Date Picker:

import { useState } from 'react';
import { DatePicker } from 'modsen-datepicker';

const App = () => {
	const [value, setValue] = useState();

	return <DatePicker onChange={(date) => setValue(date)} />;
};

Props for Date Picker

Prop name
Description
Available valuesDefault value
typeSets the calendar view'month', 'year''month'
weekStartSets the day on which the week starts'monday', 'sunday''monday'
minDateValueSets the minimum date that will be available in the calendarString value in format 'mm.dd.yyyy''01.01.1900'
maxDateValueSets the maximum date that will be available in the calendarString value in format 'mm.dd.yyyy''31.12.2025'
onChangeFunction called when the user enters date in date input or picks date in calendar(value) => setVAlue(value)-

Additional props for Range Date Picker

Prop name
Description
Available valuesDefault value
startDateValueSets default start dateString value in format 'mm.dd.yyyy'-
endDateValueSets default end dateString value in format 'mm.dd.yyyy'-
onRangeInputChangeFunction called when the user enters date in date input or picks date in calendar(value) => setVAlue(value)-

Browser Support

The date picker is compatible with the latest versions of Chrome, Firefox, and IE10+.

Keywords

react

FAQs

Package last updated on 20 May 2023

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