feat(form): add ref prop

Closes #877
This commit is contained in:
metonym 2021-11-10 14:27:49 -08:00
commit 11aa1521f3
5 changed files with 32 additions and 4 deletions

View file

@ -9,9 +9,11 @@
SelectItem,
Button,
} from "../types";
let ref: HTMLFormElement;
</script>
<Form on:submit>
<Form on:submit bind:ref>
<FormGroup legendText="Checkboxes">
<Checkbox id="checkbox-0" labelText="Checkbox Label" checked />
<Checkbox id="checkbox-1" labelText="Checkbox Label" />