Sha256: ce3692cf1aaca16565ee1f2be2feec10a433dc9f7ce14d8fddd7ed8768dfcfad

Contents?: true

Size: 826 Bytes

Versions: 16

Compression:

Stored size: 826 Bytes

Contents

<div class="ariadne-space-y-2 w-full">
  <label
    class="<%= style(:label) %>"
    for="<%= @name %>"><%= @label %></label>
  <% if required? %>
    <span aria-hidden="true">*</span>
  <% end %>
  <%= content_tag(
    :input,
    nil,
    name: @name,
    class: html_attrs[:class],
    **html_attrs.except(:class)
  ) %>
  <% if @validation_message %>
    <%= render(Primer::BaseComponent.new(tag: :div, **@validation_arguments)) do %>
      <span class="FormControl-inlineValidation--visual"><%= render(Primer::Beta::Octicon.new(icon: :"alert-fill", size: :xsmall, aria: { hidden: true })) %></span>
      <span><%= @validation_message %></span>
    <% end %>
  <% end %>
  <% if caption? %>
    <p id="<%= @name %>-description" class="<%= style(:caption, theme:, size:, width:) %>"><%= @caption %></p>
  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.88 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.87 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.9 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.8 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.7 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.6 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.5 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.4 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.3 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.2 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86.1 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.86 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.85 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/form/text_field/component.html.erb
ariadne_view_components-0.0.83.2 app/components/ariadne/form/text_field/component.html.erb