With nested data attributes but no link
If a href
is not present, the data attributes will be applied to the span
containing the big number. For parent level data attributes, use data_attributes
which comes from this component having the component wrapper.
How it looks (preview)
23
Ministerial departments
How to call this example
<%= render "govuk_publishing_components/components/big_number", {
number: 23,
label: "Ministerial departments",
nested_data_attributes: {
"department-count": true
}
} %>