Class: Primer::Forms::SubmitButton

Inherits:
BaseComponent show all
Defined in:
lib/primer/forms/submit_button.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes included from ActsAsComponent

#template_root_path

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, inherited, #input?, #perform_render, #render?, #to_component, #type

Methods included from ActsAsComponent

#compile!, extended, #renders_templates

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(input:) ⇒ SubmitButton

Returns a new instance of SubmitButton.



9
10
11
# File 'lib/primer/forms/submit_button.rb', line 9

def initialize(input:)
  @button = Button.new(input: input, type: :submit)
end