Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zigomir/nanocal

Airbnb range picker rip-off
https://github.com/zigomir/nanocal

date-picker range-picker svelte vanilla-js

Last synced: 8 days ago
JSON representation

Airbnb range picker rip-off

Awesome Lists containing this project

README

        

# 🏚 deprecated – plese see / use [caly](https://github.com/zigomir/caly)

# nanocal

> 4 kB date picker & 5 kB range picker

## what

[date](nanocal/README.md) and [range picker](ranger/README.md) that work *with or without* build tools and *with or without* frameworks

for more detailed examples how to use it with frameworks, see [examples](./examples).

## why

don't be satisfied with `moment.js` + `jquery` combo to have a simple date or range picker

## how

shout-outs to [svelte](https://svelte.technology/)

### examples on codepen.io

- [nanocal with ES modules](https://codepen.io/zigomir/pen/YEZjgO?editors=1000)
- [ranger with ES modules](https://codepen.io/zigomir/pen/vWxaPV?editors=1000)

## browser compatibility / known issues

tested on mostly modern browsers

- Chrome (desktop and mobile)
- Safari (desktop and mobile)
- Firefox
- Edge 15+
- visibility: `hidden` won't work as CSS variable

no IE because it lacks [CSS Variables](https://caniuse.com/#search=css%20variables) support