ButtonInput
A form button: renders a real <button> / <input> element whose type / name / value / formNoValidate take part in native form submission. Use Button when you have no submission needs.
Basic usage
Drop it into a FormLayout to trigger native submission; a type="submit" button carries its own name / value — whichever is clicked is the one submitted.
The input form
useInputTag renders an <input> instead of a <button>: the label text doubles as the submitted value; icons, indicators and the value prop are not supported (the label must be plain text).
API
The pressed-state class (oo-ui-buttonElement-pressed) shows while pressed via mouse or keyboard, matching the original.
See also
- The button without submission semantics: Button
- The form container: FormLayout
- Select fields that submit natively: DropdownInput