SubmitButton
SubmitButton component is part of the Primer ViewComponents forms framework. If you are building a form, please consider using the framework instead of this standalone component.Description
A submit button input rendered using the HTML <button type="submit"> tag.
This component wraps the Primer button component and supports the same slots and arguments.
Arguments
| Name | Default | Description |
|---|---|---|
name | StringValue for the HTML name attribute. | |
id | StringValue for the HTML id attribute. | |
class | StringCSS classes to include in the input's HTML | |
classes | ArrayCSS classes to include in the input's HTML | |
label | StringLabel text displayed above the input. | |
aria | HashKey/value pairs that represent Aria attributes and their values. Eg. | |
data | HashKey/value pairs that represent data attributes and their values. Eg. | |
system_arguments | HashA hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the Rails documentation for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing |