Add mode functionality + create form component

This commit is contained in:
Ibitoye Rotimi Best
2021-05-22 12:32:32 +03:00
parent c614e691ed
commit ab92f59c85
25 changed files with 6177 additions and 644 deletions
+17
View File
@@ -0,0 +1,17 @@
<script>
export let label;
export let value;
export let checked;
export let name;
</script>
<label class="inline-flex items-center">
<input
type="checkbox"
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-offset-0 focus:ring-indigo-200 focus:ring-opacity-50"
{name}
{value}
bind:checked
/>
<span class="ml-2">{label}</span>
</label>