Form
Reusable form component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<Form
action="action"
method="post"
name="name"
loading="false"
/>Legacy mount name: data-component="Form".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
action | string | Optional | "" |
method | string | Optional | "post" |
name | string | Optional | "" |
loading | boolean | Optional | false |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/Form.wrn
component Form {
props {
action = ""
method = "post"
name = ""
loading = false
class = ""
}
view {
<form action="{action}" method="{method}" name="{name}" aria-busy="{loading}" class="wire-form {class}">
<slot />
</form>
}
}