feat(form): add ref prop (#900)

Closes #877
This commit is contained in:
Eric Liu 2021-11-10 19:46:14 -08:00 committed by GitHub
commit 08402e54bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 4 deletions

View file

@ -3998,7 +3998,19 @@
{
"moduleName": "Form",
"filePath": "src/Form/Form.svelte",
"props": [],
"props": [
{
"name": "ref",
"kind": "let",
"description": "Obtain a reference to the form element",
"type": "null | HTMLFormElement",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,
"constant": false,
"reactive": true
}
],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [
{ "type": "forwarded", "name": "click", "element": "form" },