FormButton
FormButton
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 button input rendered using the HTML <button type="button">
tag.
This component wraps the Primer button component and supports the same slots and arguments.
Arguments
Name | Required | Description |
---|---|---|
name | String Value for the HTML name attribute. | |
id | String Value for the HTML id attribute. | |
class | String CSS classes to include in the input's HTML | |
classes | Array CSS classes to include in the input's HTML | |
label | String Label text displayed above the input. | |
aria | Hash Key/value pairs that represent Aria attributes and their values. Eg. | |
data | Hash Key/value pairs that represent data attributes and their values. Eg. | |
system_arguments | Hash A 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 |