Options
Key | Value | Default | Description |
---|---|---|---|
name | string | null | A unique name that is also used as an id. |
title | string | null | A title that is set as H1 option above the form. |
enhance | boolean | false | Set the progressive enhancement option of svelte forms. |
attributes | object | null | Attributes that are passed unchanged to the form element. For example, the action function can also be defined here. |
inner | boolean | false | If it is true, it does not put a form element around the created form. This makes the enhance, buttons and attributes option obsolete. |
buttons | array | null | Created button under the form. For example, a submit button can be defined here. |
elements | array | null | This is one of the most important parts, because this is where all the elements that are to be displayed in the form come in. |
elements
Key | Value | Default | Description |
---|---|---|---|
name | string | null | A unique name that is also used as an id. |
field | object | null | The actual field. Here attributes are forwarded directly to the input field. |
helper | string | null | Auxiliary information under the input field |
error | string | null | Misinformation under the input field. You can use it for validation error. |
Last updated