Label examples
-
# default
-
# with bold text
-
# styled as xl text
-
# styled as large text
-
# styled as medium text
-
# styled as small text
-
# as page heading xl
-
# as page heading l
-
# as page heading m
-
# as page heading s
-
# as page heading without class
-
# empty
-
# classes
-
# html as text
-
# html
-
# for
-
# attributes
{ "text": "National Insurance number", "attributes": { "first-attribute": "foo", "second-attribute": "bar" } }{% from "govuk/components/label/macro.njk" import govukLabel %} {{ govukLabel({ "text": "National Insurance number", "attributes": { "first-attribute": "foo", "second-attribute": "bar" } }) }}