0.5.0 • Published 1 year 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
1 year ago
0.4.3
2 years ago
0.4.1
2 years ago
0.4.2
2 years ago
0.3.9
2 years ago
0.3.11
2 years ago
0.3.10
2 years ago
0.3.0
2 years ago
0.3.6
2 years ago
0.3.5
2 years ago
0.3.8
2 years ago
0.3.7
2 years ago
0.3.2
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago