Form radio button example
With description and hint
How it looks
(preview)
How to call this example
<%= render "govuk_publishing_components/components/radio", {
name: "radio-group-description",
heading: "What is your favourite colour?",
description: "Skittles consist of hard sugar shells imprinted with the letter \"S\".
The interior consists mainly of sugar, corn syrup, and hydrogenated
palm kernel oil along with fruit juice, citric acid, natural and artificial flavors.
",
hint: "Choose the colour",
items: [
{
value: "red",
text: "Red"
},
{
value: "green",
text: "Green"
},
{
value: "blue",
text: "Blue"
}
]
} %>