Form
The Form component collects user inputs through various form elements such as input fields, checkboxes, radio buttons, and dropdowns.
Preview
API Reference
prop | type | default | description |
---|---|---|---|
package | typing.Literal['flect'] | flect | None |
class_name | typing.Optional[str] | None | Specifies the Tailwind CSS classes for the component. |
model | typing.Type[pydantic.main.BaseModel] | None | Defines the form's data model. |
submit_method | typing.Literal['POST', 'PUT', 'PATCH'] | POST | Specifies the HTTP method for form submission. |
submit_url | <class 'str'> | None | Specifies the URL where the form will be submitted. |
submit_text | typing.Optional[str] | None | Specifies the text for the submit button. |