class Ariadne::Forms::Dsl::TextFieldInput
def to_component
def to_component html_attrs = @input_attributes || {} html_attrs[:placeholder] = @placeholder if @placeholder.present? html_attrs[:disabled] = true if @disabled leading_visual_heroicon = @options.delete(:leading_visual_heroicon) text = Ariadne::Form::TextField::Component.new(name: @name, label: @label, caption: @caption, html_attrs: html_attrs, **@options) text.with_leading_visual_heroicon(**leading_visual_heroicon) if leading_visual_heroicon.present? text end