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

@ -2,7 +2,13 @@
import { SvelteComponentTyped } from "svelte";
export interface FormProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["form"]> {}
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["form"]> {
/**
* Obtain a reference to the form element
* @default null
*/
ref?: null | HTMLFormElement;
}
export default class Form extends SvelteComponentTyped<
FormProps,