1.3.1 ā€¢ Published 3 years ago

react-calendar-datetime v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Calendar component for React


npm version npm

Demo

N|Solid

šŸ“… date and time picker, include presets


šŸ”Ø How to install:

  npm install react-calendar-datetime

  or

  yarn add react-calendar-datetime

šŸ“† How to use:

import React from "react";

import { Calendar } from "react-calendar-datetime";

const App = () => {
  const [date, setDate] = useState(new Date());
  return <Calendar date={date} onChangeDate={setDate} />;
};

Easy and simple :+1:

Props:

PropertyTypeDefaultDescription
dateDatenew Date()accepts the date in the normal format
onChangeDatefunction-----callback, called when the calendar changes and return the new date
localestring'en-gb'locale name, currently supported: en-gb,ru,de,uk,zh-cn,fr
presetsbooleanfalsepresets mode
timebooleanfalsetimepicker mode
widthstringnullany css-lang string measure
heightstringnullany css-lang string measure
darkbooleanfalsedark theme

āœ… Patch note:


v 1.3.1

  • add year picker
  • add dark theme šŸŒ™ N|Solids
  • add locales:
    • zh-cn
    • fr
1.3.1

3 years ago

1.3.0

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.0

3 years ago

1.2.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago