0.0.5 • Published 5 months ago

@rschiang/svelte-timepicker v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Svelte Time Picker

What is it?

A very simple time picker component for Svelte, inspired by Material UI's time picker.

Installation

npm install @rschiang/svelte-timepicker

Usage

<script>
    import { TimePicker } from "@rschiang/svelte-timepicker";

    let hours = null;
    let minutes = null;
</script>

<TimePicker onChange={(h, m) => {
    hours = h;
    minutes = m;
}} />

Demo

https://svelte.dev/repl/54e378a10dac4c8cabd9d938d40a9364?version=4.2.8

Screenshot

Properties

PropertyTypeDescription
hours?number \| nullControls the hours value.
minutes?number \| nullControls the minutes value.
onChange?function \| nullFunction with two parameters: hours and minutes.
containerClass?stringClass name for the container element.
inputClass?stringClass name for the input element.
popoverClass?stringClass name for the popover element.
popoverHeaderClass?stringClass name for the popover header element.
popoverHeaderColClass?stringClass name for the popover header column element.
popoverHeaderBtnClass?stringClass name for the popover header button element.
popoverFooterClass?stringClass name for the popover footer element.
popoverFooterBtnClass?stringClass name for the popover footer button element.

License

MIT

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago