1.0.2 • Published 1 year ago

react-scrollable-datepicker v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Scrollable Datepicker

  

A simple scrolling date picker made with React. 📅

Install

npm install react-scrollable-datepicker

Usage

import React from 'react';
import {useState} from 'react'
import DatePicker from 'react-scrollable-datepicker';
const App = () => {
  const [date, setDate] = useState();
  return (
    <div>
      <DatePicker setDate={setDate} height={400} size={40} cellColor={"pink"} isDarkMode={false}/>
    </div>
  )
}

export default App;

Documentation

NameRequiredTypeDefaultDescription
datestring (YYYY, MM, DD)current dateSelected date value
setDatestring or null (YYYY, MM, DD)n/aAllows the components to return the date value
heightnumbern/aCustom height of the component
sizenumbern/aCustom size of the font
cellColorstringrgb(249 168 212)Custom color of the selected value
isDarkModebooleanfalseDark mode toggle

License

The MIT License.

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago