0.5.0 • Published 1 year ago

@bbon/react-calendar v0.5.0

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

react-calendar

npm (scoped) npm Build and tag publish NPM

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

Example

  1. Clone this repository.
  2. Change directory to example
$ cd example
  1. Install dependencies
$ npm install
  1. Start dev server
$ npm run dev
  1. 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