Remarkable inputs
Submit​
Submit inputs have the submit id.
{
type: 'submit',
id: 'submit',
params: {
text: 'Send code',
}
}
To handle submission see submission.
Static input​
You can use html elements in a component to render a header or display a paragraph. This is particularly useful when you want to incorporate text blocks or improve your form presentation between inputs.
For instance the Mui component library offers inputs for:
html: rawdividerdisplays a divider (hr) between inputsh1,h2,h3,h4renders the respective headers
Examples:
{
type: 'html',
params: {
content: "If the user doesn't exist, provide these informations"
}
}
{
type: 'h2',
params: {
content: 'General informations'
}
}
{
type: 'divider',
}