JavaScript Calendar Component

npm install --save atomical

Basic usage

Just call the atomical function on a container element, and a calendar of the current month will be rendered.

import atomical from 'atomical';

const container = document.querySelector('#calendar-container');
atomical(container);

Customize

There are several customization options available.

import atomical from 'atomical';

const container = document.querySelector('#calendar-container');
atomical(container, {
  month: 0,
  year: 2021,
  colors: {
    headerBackground: 'blue'
  }
});