Date and time picker for Svelte
Features:
- Theming
- Custom formats
- Internationalization (i18n)
- Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format)
- Keyboard shortcuts
Extra features in this fork:
- Allows a custom name attribute to be assigned to the DateInput
- Allows custom data attributes to be assigned to the DateInput
Demo • Documentation • REPL
npm install date-picker-svelte
<script>
import { DateInput } from 'date-picker-svelte'
let date = new Date()
</script>
<DateInput bind:value={date} />
Check the docs to learn more
- Install Node.js (v14 works)
- Run
npm install
npm run dev
: Start site in dev modenpm run build
: Build package and sitenpm run preview
: Preview production sitenpm run check
: Runsvelte-check
npm run test
: Run testsnpm run format
: Format code
- Update
CHANGELOG.md
- Check for errors
npm run lint
- Bump the version number
npm version --no-git-tag <version>
- Generate the package
npm run build:package
- Publish the package
npm publish ./package
- Commit with a tag in format "v#.#.#"
- Create GitHub release with release notes