With custom items
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/date_input", {
legend_text: "Beth yw eich dyddiad geni?",
hint: "Er enghraifft, 31 3 1980",
items: [
{
label: "Dydd",
name: "dob-dydd",
width: 2,
value: 31
},
{
label: "Mis",
name: "dob-mis",
width: 2,
value: 3
},
{
label: "Blwyddyn",
name: "dob-blwyddyn",
width: 4,
value: 1980
}
]
} %>