A scrollable datepicker designed for touch screen interfaces with Svelte.
Add the package to your dependencies
NPM:
npm install @10xminds/scrollable-date-picker
Yarn:
yarn add @10xminds/scrollable-date-picker
<script>
import { ScrollableDatePicker } from "@10xminds/scrollable-date-picker";
<ScrollableDatePicker
selectedDate="2023-01-23"
rowsShown={3}
separatorWidth={4}
rowBackgroundColor="#03FFFF"
/>
Instal dependencies with
npm install
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Everything inside src/lib
is part of your library, everything inside src/routes
can be used as a showcase or preview app.
To build your library:
npm run package
To create a production version of your showcase app:
npm run build
To publish the library to npm:
npm publish