I am working on a simple website, using SvelteKit. For the UI, I use Flowbite-Svelte and some of its components.
During early stages of development, I just used the availableFrom property. Now I want to be able to exclude some specific dates that cannot be selected in the datepicker by the user, only to find no feature like that in the docs.
Is there something I am missing? Or is there another way of implementing this?
I would like to keep using the Datepicker component of Flowbite-Svelte, but if there's no other way I might consider switching to something else, sadly :(
My current Datepicker looks like this:
<Datepicker
required={true}
inputProps={{ id: "date" }}
bind:value={selectedDate}
availableFrom={new Date()}
placeholder="Datum van afspraak"
locale="nl-NL"
translationLocale="nl-NL"
firstDayOfWeek={1}
dateFormat={{ year: "numeric", month: "2-digit", day: "2-digit" }}
inputClass="w-full text-black border-2 rounded-md p-3 focus:ring-1 focus:ring-blue-500 border-gray-600 bg-accent-100"
classes={{
polite: "hover:text-primary-100!",
dayButton: "hover:text-primary-100 selected:text-black",
titleVariant: "text-primary-100",
monthButton: "alternative"
}}
/>