Nostalgic Piano Music

    @stickyboard/github-calendar

    0.1.0 • Public • Published

    stickyboard-github-calendar

    GitHub calendar component for StickyBoard

    Version Downloads/week License

    Webpack watch

    $ npm start
    

    Build

    $ npm run build
    

    Usage example

    import React from 'react';
    import { GitHubCalendar } from '@stickyboard/github-calendar';
    
    const sampleData = [
        { date: '2020-01-01', count: 10 },
        { date: '2020-02-01', count: 20 },
        { date: '2020-03-01', count: 30 },
        { date: '2020-04-01', count: 5 },
        { date: '2020-05-01', count: 7 },
        { date: '2020-06-01', count: 12 },
        { date: '2020-07-01', count: 16 },
        { date: '2020-08-01', count: 21 },
        { date: '2020-09-01', count: 19 },
        ...
    ];
    
    function SampleGitHubCalendar(props) {
        const { colors } = props;
    
        return (
            <GitHubCalendar
                startDate={'2020-01-01'}
                endDate={'2020-12-31'}
                data={sampleData}
            />
        );
    }
    
    export default SampleGitHubCalendar;

    License

    This project is licenced under the MIT License.

    Install

    npm i @stickyboard/github-calendar

    DownloadsWeekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    98.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • soaple