budibase/packages/builder/src/components/common/DatePicker.svelte

13 lines
296 B
Svelte
Raw Normal View History

2019-07-13 11:35:57 +02:00
<script>
import Flatpickr from "svelte-flatpickr"
2020-09-09 17:27:46 +02:00
import { Label, DatePicker } from "@budibase/bbui"
2020-09-09 14:44:36 +02:00
export let label
export let value
2019-07-13 11:35:57 +02:00
</script>
<div class="bb-margin-m">
<Label small forAttr={'datepicker-label'}>{label}</Label>
2020-09-09 17:27:46 +02:00
<DatePicker placeholder={label} bind:value />
2020-09-09 14:44:36 +02:00
</div>