Use form_root as form high level API (#2479)

This commit is contained in:
Martin Xu 2024-01-29 13:42:01 -08:00 committed by GitHub
parent 3a97a10d92
commit b6f4422378
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -289,6 +289,9 @@ class FormSubmit(FormComponent):
alias = "RadixFormSubmit"
# High Level API
Form = FormRoot
form_root = FormRoot.create
form_field = FormField.create
form_label = FormLabel.create
@ -296,3 +299,4 @@ form_control = FormControl.create
form_message = FormMessage.create
form_validity_state = FormValidityState.create
form_submit = FormSubmit.create
form = Form.create

View File

@ -735,6 +735,7 @@ class FormSubmit(FormComponent):
"""
...
Form = FormRoot
form_root = FormRoot.create
form_field = FormField.create
form_label = FormLabel.create
@ -742,3 +743,4 @@ form_control = FormControl.create
form_message = FormMessage.create
form_validity_state = FormValidityState.create
form_submit = FormSubmit.create
form = Form.create