With id attribute
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/fieldset", {
legend_text: "Do you have a passport?",
id: "passports"
} do %>
<!-- example content -->
<%= render "govuk_publishing_components/components/radio", {
name: "passport",
items: [
{
value: "passport-yes",
text: "Yes"
},
{
value: "passport-no",
text: "No"
}
]
} %>
<!-- end of example content -->
<% end %>