x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div class="space-y-4 p-4"> <div> <div class="form-field-wrapper"> <label for="example_text" class="block font-medium text-gray-700 mb-1 text-sm"> Type: text </label> <div class="relative flex items-center"> <input name="example_text" placeholder="text input" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-white text-gray-900 placeholder-gray-400 focus:border-primary-500 focus:ring-2 focus:ring-primary-500 focus:ring-opacity-20 focus:outline-none" type="text" /> </div> </div> </div> <div> <div class="form-field-wrapper"> <label for="example_email" class="block font-medium text-gray-700 mb-1 text-sm"> Type: email </label> <div class="relative flex items-center"> <input name="example_email" placeholder="email input" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-white text-gray-900 placeholder-gray-400 focus:border-primary-500 focus:ring-2 focus:ring-primary-500 focus:ring-opacity-20 focus:outline-none" type="email" /> </div> </div> </div> <div> <div class="form-field-wrapper"> <label for="example_tel" class="block font-medium text-gray-700 mb-1 text-sm"> Type: tel </label> <div class="relative flex items-center"> <input name="example_tel" placeholder="tel input" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-white text-gray-900 placeholder-gray-400 focus:border-primary-500 focus:ring-2 focus:ring-primary-500 focus:ring-opacity-20 focus:outline-none" type="tel" /> </div> </div> </div> <div> <div class="form-field-wrapper"> <label for="example_date" class="block font-medium text-gray-700 mb-1 text-sm"> Type: date </label> <div class="relative flex items-center"> <input name="example_date" placeholder="date input" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-white text-gray-900 placeholder-gray-400 focus:border-primary-500 focus:ring-2 focus:ring-primary-500 focus:ring-opacity-20 focus:outline-none" type="date" /> </div> </div> </div> <div> <div class="form-field-wrapper"> <label for="example_time" class="block font-medium text-gray-700 mb-1 text-sm"> Type: time </label> <div class="relative flex items-center"> <input name="example_time" placeholder="time input" class="block w-full rounded-md border shadow-sm transition-colors duration-200 text-base py-2 px-4 border-gray-300 bg-white text-gray-900 placeholder-gray-400 focus:border-primary-500 focus:ring-2 focus:ring-primary-500 focus:ring-opacity-20 focus:outline-none" type="time" /> </div> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
<div class="space-y-4 p-4"> <% BetterUi::Forms::TextInputComponent::TYPES.each do |type| %> <div> <%= render BetterUi::Forms::TextInputComponent.new( name: "example_#{type}", type: type, label: "Type: #{type}", placeholder: "#{type} input" ) %> </div> <% end %></div>No notes provided.
No params configured.