class Ariadne::Forms::Dsl::ButtonInput
:nodoc:
def initialize(name:, label:, **options, &block)
def initialize(name:, label:, **options, &block) @name = name @label = label @caption = options.delete(:caption) @block = block super(**options) end
def supports_validation?
def supports_validation? false end
def to_component
def to_component html_attrs = @input_attributes || {} Ariadne::UI::Button::Component.new(**@options, html_attrs: html_attrs).with_content(@label) end
def type
def type :button end