GitHub

Form

The Form component collects user inputs through various form elements such as input fields, checkboxes, radio buttons, and dropdowns.

Preview

API Reference

proptypedefaultdescription
packagetyping.Literal['flect']flectNone
class_nametyping.Optional[str]NoneSpecifies the Tailwind CSS classes for the component.
modeltyping.Type[pydantic.main.BaseModel]NoneDefines the form's data model.
submit_methodtyping.Literal['POST', 'PUT', 'PATCH']POSTSpecifies the HTTP method for form submission.
submit_url<class 'str'>NoneSpecifies the URL where the form will be submitted.
submit_texttyping.Optional[str]NoneSpecifies the text for the submit button.