Skip to contents

Group related form fields with a legend using Designsystemet styles.

Usage

ds_fieldset(legend, ..., class = NULL)

Arguments

legend

The legend text for the fieldset group

...

Child elements (fields, inputs, etc.)

class

Additional CSS classes

Value

A Shiny tag object

Examples

ds_fieldset("Preferences",
  ds_checkbox("opt1", "Option 1"),
  ds_checkbox("opt2", "Option 2")
)
#> <fieldset class="ds-fieldset">
#>   <legend>Preferences</legend>
#>   <input id="opt1" name="opt1" class="ds-input ds-shiny-input" type="checkbox"/>
#>   <label for="opt1">Option 1</label>
#>   <input id="opt2" name="opt2" class="ds-input ds-shiny-input" type="checkbox"/>
#>   <label for="opt2">Option 2</label>
#> </fieldset>