Nanometers Per Millisecond

    @bbon/react-calendar
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.2 • Public • Published

    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

    Install

    npm i @bbon/react-calendar

    DownloadsWeekly Downloads

    2

    Version

    0.4.2

    License

    MIT

    Unpacked Size

    124 kB

    Total Files

    15

    Last publish

    Collaborators

    • bbon