1. Component Guide
  2. Form fieldset
  3. Default
Form fieldset example


How it looks (preview)

Do you have a passport?

How to call this example

<%= render "govuk_publishing_components/components/fieldset", {
  legend_text: "Do you have a passport?"
} do %>
  <!-- Use the radio component, this is hardcoded only for this example -->
  <input type="radio" id="default-yes" name="default">
  <label for="default-yes">Yes</label>

  <input type="radio" id="default-no" name="default">
  <label for="default-no">No</label>
<% end %>