v1 of deadline feature

This commit is contained in:
rotimi-best
2021-09-23 16:39:38 +03:00
parent 5c9b6b9ae8
commit 97cef195f9
7 changed files with 49 additions and 15 deletions
+18
View File
@@ -0,0 +1,18 @@
<script>
export let label;
export let placeholder;
export let value;
export let className = '';
export let onChange = () => {}; // This is to know if element is 'dirty'
</script>
<label class="block {className}">
<span class="text-gray-700">{label}</span>
<input
bind:value
{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"
on:blur={onChange}
/>
</label>