Playground
Turn the options and watch it change. The code below changes with it, in whichever framework you are using — copy it and you have what is on the screen.
import { createDatePicker } from '@devix-labs/date-picker';
import '@devix-labs/date-picker/styles.css';
createDatePicker(document.querySelector('#target'), {
locale: 'en-GB',
calendar: 'gregory',
months: 1,
weekNumbers: false,
multiple: false,
typing: true,
footer: true,
closeOnSelect: true
});
import { DatePicker } from '@devix-labs/date-picker/react';
import '@devix-labs/date-picker/styles.css';
<DatePicker
locale="en-GB"
calendar="gregory"
months={1}
typing
footer
closeOnSelect
/>
<script setup>
import { DatePicker } from '@devix-labs/date-picker/vue';
import '@devix-labs/date-picker/styles.css';
</script>
<template>
<DatePicker
locale="en-GB"
calendar="gregory"
:months="1"
typing
footer
close-on-select
/>
</template>
<script>
import { datePicker } from '@devix-labs/date-picker/svelte';
import '@devix-labs/date-picker/styles.css';
</script>
<div use:datePicker={{
locale: 'en-GB',
calendar: 'gregory',
months: 1,
weekNumbers: false,
multiple: false,
typing: true,
footer: true,
closeOnSelect: true
}} />
Every option here is in the documentation, along with the ones that are not worth a control.