Fieldsets group related form controls and can optionally include a legend.
A simple fieldset rendered without a legend.
Pass simple text for the legend directly using the legend: argument.
Use the with_legend slot to provide custom content for the legend,
including HTML.
Fieldsets are useful for grouping related form inputs under a common legend.
You can customize the Fieldset with standard css options to make it look
exactly like you want.
Pass caption: to add caption / helper text below the controls. It
renders DaisyUI's .fieldset-label, which — unlike .label
(daisy_label) — is not nowrap, so long help text wraps instead of
overflowing the form.
.fieldset-label is display: flex, which splits a sentence and an
inline link into separate flex items. For prose that contains a link, use
the caption slot and pass css: "block" so the link flows inside the
sentence.
= daisy_fieldset(legend: "Theme", css: "w-80") do |fieldset|
= daisy_select(options: ["Light", "Dark", "System"], placeholder: "Select a theme")
- fieldset.with_caption(css: "block") do
Pick the palette used for new charts. Manage your saved themes on the
= daisy_link("Themes", href: "#")
page.
Create virtual credit / debit cards to keep your real info safe.
Get $5 when you sign up — free to start!
Everything you need to grow your business with confidence!
CRM, Lead Generation, Project Management, Contracts, Online Payments, and more!
The ads above are affiliate links to products I regularly use and highly
recommend.
I may receive a commission if you decide to purchase.