Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 692 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 692 Bytes
ACalendar Usage

version version

    import "acalendar/style/theme_light.css";
    // OR
    import "acalendar/style/theme_dark.css";

    import { Calendar } from "acalendar";
    import moment from "moment"; 

    // Setting a locale
    moment.locale("en");

    /**
     * @param {moment} date
    */
    function onChange(date) {
        console.log(date.format("DD/MM/YYYY"))
    }   

    ReactDOM.render(<Calendar 
        date={moment.now()} // moment object
        onChange={onChange}/>, container);