0.5.0 • Published 2 years ago
@bbon/react-calendar v0.5.0
react-calendar
Peer dependencies
Installation
$ npm install --save @bbon/react-calendar
Usages
import React, {useCallback} from 'react';
import { Calendar } from '@bbon/react-calendar';
import '@bbon/react-calendar/dist/calendar.css';
const MyComponent = () => {
const handleChangeSelection = useCallback(
(start?: string, end?: string) => {
console.info('Selected dates: ', start, end);
},
[],
);
return (
<div>
<Calendar
useMoveToYear
useMoveToMonth
highlightToday
showDate
onChange={handleChangeSelection}
/>
</div>
);
}
Example
- Clone this repository.
- Change directory to example
$ cd example
- Install dependencies
$ npm install
- Start dev server
$ npm run dev
- Navigate to http://localhost:3000
0.5.0
2 years ago
0.4.3
3 years ago
0.4.1
3 years ago
0.4.2
3 years ago
0.3.9
4 years ago
0.3.11
4 years ago
0.3.10
4 years ago
0.3.0
4 years ago
0.3.6
4 years ago
0.3.5
4 years ago
0.3.8
4 years ago
0.3.7
4 years ago
0.3.2
4 years ago
0.4.0
4 years ago
0.3.1
4 years ago
0.3.4
4 years ago
0.3.3
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago