@custom_okoshko/core
v0.1.0-beta.1
Published
Embeddable mobile-first calendar: date, range, datetime and events modes. Zero dependencies.
Maintainers
Readme
@custom_okoshko/core
Встраиваемый mobile-first календарь без зависимостей: одна дата, диапазон, дата и время, мини-календарь с событиями. ~6 kB gzip.
npm i @custom_okoshko/core @custom_okoshko/themes @custom_okoshko/localesimport '@custom_okoshko/themes/base.css';
import '@custom_okoshko/themes/light.css';
import { Calendar } from '@custom_okoshko/core';
import { ru } from '@custom_okoshko/locales/ru';
const calendar = new Calendar(document.getElementById('calendar'), {
inline: true, // без inline элемент станет якорем попапа (bottom sheet на телефоне)
mode: 'range', // 'date' | 'range' | 'datetime' | 'events'
locale: ru,
onChange: (value) => console.log(value),
});Без сборщика: <script src="https://cdn.jsdelivr.net/npm/@custom_okoshko/core@beta"> → window.CustomOkoshko.Calendar.
Обёртки: @custom_okoshko/react, @custom_okoshko/vue, @custom_okoshko/svelte.
Документация и живые демо: DOCS_URL
Лицензия MIT.
