Label - Menovka
Code
Markup
<label class="govuk-label">
National Insurance number
<span class="idsk-required">*</span>
</label>
Macro
{% from "govuk/components/label/macro.njk" import govukLabel %}
{{ govukLabel({
text: "National Insurance number"
}) }}
Menovka with not required info
Otvoriť príklad na novej záložke: menovka with not required info
Code
Markup
<label class="govuk-label">
National Insurance number
<span class="idsk-not-required">(not required)</span>
</label>
Macro
{% from "govuk/components/label/macro.njk" import govukLabel %}
{{ govukLabel({
text: "National Insurance number",
notRequired: "not required"
}) }}
Menovka with bold text
Code
Markup
<label class="govuk-label govuk-label--s">
National Insurance number
<span class="idsk-required">*</span>
</label>
Macro
{% from "govuk/components/label/macro.njk" import govukLabel %}
{{ govukLabel({
classes: "govuk-label--s",
text: "National Insurance number"
}) }}