button
, implemented in Ruby. Use it like any of the other matestack form components in your apps, pages and components. It offers customizable options to simply achieve what is possible in Bootstrap with this component. See below for more information about the configuration options.bs_form_submit(*args, &block)
button_variant
- Expects a symbol that defines the Bootstrap style. Defaults to :primary
spinner_variant
- Expects a symbol that defines the Bootstrap loading spinner style. Defaults to :light, size: :sm
text
- Expects a string, the content of which get displayed within the buttonloading_text
- Expects a string, the content of which get displayed while the button is in its "loading"-statussize
- Expects a symbol that defines the Bootstrap button sizeclass
- Additional custom CSS class applied to buttonloading_class
- Additional custom CSS class applied to button during submission