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
<fieldset class="form-field-wrapper"> <legend class="block font-medium text-gray-700 mb-2 text-sm"> Notification Preferences </legend> <div class="flex flex-col gap-2.5"> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="notifications_0" name="notifications[]" value="email" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="notifications_0" class="select-none cursor-pointer text-gray-700 text-sm"> Email notifications </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="notifications_1" name="notifications[]" value="push" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="notifications_1" class="select-none cursor-pointer text-gray-700 text-sm"> Push notifications </label> </div> </div> <div class="form-field-wrapper"> <div class="flex items-start flex-row gap-2.5"> <input type="checkbox" id="notifications_2" name="notifications[]" value="sms" class="appearance-none shrink-0 rounded border cursor-pointer transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 w-5 h-5 border-gray-300 checked:bg-primary-600 checked:border-primary-600 focus:ring-primary-500 bg-white" /> <label for="notifications_2" class="select-none cursor-pointer text-gray-700 text-sm"> SMS notifications </label> </div> </div> </div> <div class="block text-gray-600 mt-2 text-sm"> Select how you'd like to be notified </div></fieldset>1
2
3
4
5
6
7
8
9
10
render BetterUi::Forms::CheckboxGroupComponent.new( name: "notifications", collection: [ [ "Email notifications", "email" ], [ "Push notifications", "push" ], [ "SMS notifications", "sms" ] ], legend: "Notification Preferences", hint: "Select how you'd like to be notified")No notes provided.
No params configured.