Live chat app

This commit is contained in:
rotimi_best
2021-05-29 22:24:14 +03:00
parent 674e9c59b8
commit ba2412d2b1
7 changed files with 147 additions and 8 deletions
+5 -4
View File
@@ -2,14 +2,15 @@
export let label;
export let placeholder;
export let value;
export let onKeyDown;
</script>
<label class="block">
<span class="text-gray-700">{label}</span>
{#if label}<span class="text-gray-700">{label}</span>{/if}
<input
class="form-input mt-1 block w-full"
class="form-input mt-1 block w-full rounded-lg"
type="text"
on:keydown={onKeyDown}
{placeholder}
bind:value
/>
bind:value />
</label>