2021-09-23 16:39:38 +03:00
|
|
|
<script>
|
|
|
|
|
export let label;
|
|
|
|
|
export let placeholder;
|
|
|
|
|
export let value;
|
|
|
|
|
export let className = '';
|
2021-09-24 13:20:40 +03:00
|
|
|
export let onInput = () => {};
|
|
|
|
|
$: console.log(`value`, value);
|
2021-09-23 16:39:38 +03:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<label class="block {className}">
|
|
|
|
|
<span class="text-gray-700">{label}</span>
|
|
|
|
|
<input
|
|
|
|
|
bind:value
|
2021-09-24 13:20:40 +03:00
|
|
|
on:input={onInput}
|
2021-09-23 16:39:38 +03:00
|
|
|
{placeholder}
|
|
|
|
|
type="datetime-local"
|
|
|
|
|
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
|
|
|
|
/>
|
|
|
|
|
</label>
|