Installation
Install package to your project
PNPM first
Use pnpm as much as possible. It respects package version more than npm.
npm install --save svelte-flatpickr-plus
sh
Import it to your .svelte
file
import to your code and using a action on input
element with use:
directive
Name your action
You can name a action as you like but in this document I will calling it
svlatepickr
(svelte + flatpickr)
.svelte
+
<script>
import svlatepickr from 'svelte-flatpickr-plus';
</script>
<input name="datepicker" use:svlatepickr />
svelte