x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="kZtpr_m_eIusyKJ_WL9ibtZWZVSjF8UXjzTaXGLKcNYX29lCdffFLDN8VMTW2rHNU9-1b2PhBrk5TTi1AjoWDw" autocomplete="off" /> <div class="polaris-text-field-wrapper"> <div class="Polaris-Labelled__LabelWrapper"> <div class="Polaris-Label"> <label class="Polaris-Label__Text" for="product_title">Title</label> </div> </div> <div class="Polaris-Connected"> <div class="Polaris-Connected__Item Polaris-Connected__Item--primary"> <div data-polaris-text-field-has-value-class="Polaris-TextField--hasValue" data-polaris-text-field-clear-button-hidden-class="Polaris-TextField__Hidden" data-controller="polaris-text-field" class="Polaris-TextField"> <input data-polaris-text-field-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" type="text" value="Product Name" name="product[title]" id="product_title" /> <div class="Polaris-TextField__Backdrop"></div> </div> </div> </div> <div class="Polaris-Labelled__HelpText"> <span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--subdued Polaris-Text--regular Polaris-Text--break"> Note about text field </span> </div> </div></form>
1
2
3
<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %> <%= form.polaris_text_field(:title, help_text: "Note about text field") %><% end %>
No notes provided.
No params configured.