Skip to main content
Version: Next

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: raw
  • divider displays a divider (hr) between inputs
  • h1, h2, h3, h4 renders 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',
}