x
1
2
3
4
5
6
7
<div class="max-w-md"> <div class="flex flex-col gap-2 w-full"> <label for="ui-field-55cf0bb5" class="text-sm font-medium">Accent colour</label> <input type="color" name="accent" value="#4d1a7f" class="h-9 w-16 rounded-md border border-input bg-background p-1" id="ui-field-55cf0bb5" aria-describedby="ui-field-55cf0bb5-hint"> <p id="ui-field-55cf0bb5-hint" class="text-xs text-muted-foreground">Used for your avatar and links.</p> </div></div>1
2
3
4
5
6
<div class="max-w-md"> <%= render(UI::FormField.new(label: "Accent colour", hint: "Used for your avatar and links.")) do |field| %> <%= tag.input(type: "color", name: "accent", value: "#4d1a7f", class: "h-9 w-16 rounded-md border border-input bg-background p-1", **field.control_attributes) %> <% end %></div>No notes provided.
No params configured.