Home > General Components > FormRoot

FormRoot

@wq/material’s <FormRoot/> component defines the actual <form> component for web. In native, <FormRoot/> is just a <Fragment/> since form submission is handled by <SubmitButton/> instead. <FormRoot/> is analogous to <form> in HTML.

Source

While @wq/react defines a placeholder implementation, @wq/material’s versions are more useful as reference:

  • FormRoot.js (@wq/material-web)
  • FormRoot.js (@wq/material-native)

The @wq/material-native implementation simply renders its children.