x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="form-field-wrapper"> <label for="email" class="block font-medium text-gray-700 mb-1 text-sm"> Email Address </label> <div class="relative flex items-center"> <div class="absolute inset-y-0 flex items-center pointer-events-none px-4 left-0"> <svg class="h-5 w-5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/> </svg> </div> <input name="email" placeholder="you@example.com" 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 pl-10" type="email" /> </div> <div class="block text-gray-600 mt-1 text-sm"> We'll never share your email with anyone else. </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
render BetterUi::Forms::TextInputComponent.new( name: "email", type: :email, label: "Email Address", placeholder: "you@example.com", hint: "We'll never share your email with anyone else.") do |component| component.with_prefix_icon do '<svg class="h-5 w-5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/> </svg>'.html_safe endendNo notes provided.
No params configured.