Skip to main content
!GOV.UK
NotGovUK
  • Get started
  • Styles
  • Components
  • Contributing
  • Back link
  • Breadcrumbs
  • Button
  • Checkboxes
  • Cookie banner
  • Date input
  • Details
  • Error message
  • Error summary
  • FieldSet
  • File upload
  • Footer
  • Header
  • Inset text
  • Notification banner
  • Pagination
  • Panel
  • Phase banner
  • Radios
  • Select
  • Service navigation
  • Skip link
  • Summary list
  • Table
  • Tabs
  • Tag
  • Text input
  • Textarea
  • Warning text
Unofficial
  • Aside
  • Form
  • Form field
  • Navigation menu
  • Page
  • Search box
  • Standalone input
Internal
  • Button group
  • Form group
  • Hint
  • Input
  • Label
  • Link
  • Summary card
  • Visually hidden
  • Width container
Components

Label

Internal

A label for a form field.

  • HTML
  • React
Rendering...
Rendering...
Props
NameTypeDefaultDescription

Stories

Standard

A standard Label.

  • HTML
  • React
Rendering...
Rendering...

In-line

  • HTML
  • React
Rendering...
Rendering...

Support links

  • GitHub
  • Sitemap
  • Contact
Copyright (C) 2019-2025 Crown Copyright
Copyright (C) 2019-2025 Daniel A.C. Martin
NotGovUK operates independently from GOV.UK and is not affiliated, endorsed or supported by HM Government
<form action="#" method="get"> <label for="my-field" class="govuk-label" aria-hidden="false" > My label </label> <input type="text" id="my-field" name="my-field" /> </form>
<form action="#" method="get"> <Label htmlFor="my-field">My label</Label> <input id="my-field" name="my-field" type="text" /> </form>
<form action="#" method="get"> <label for="my-field2" class="govuk-label" aria-hidden="false" > My label </label> <input type="text" id="my-field2" name="my-field" /> </form>
<form action="#" method="get"> <Label htmlFor="my-field2">My label</Label> <input id="my-field2" name="my-field" type="text" /> </form>
<form action="#" method="get"> <label class="govuk-label" aria-hidden="false"> My label <input type="text" name="my-field" /> </label> </form>
<form action="#" method="get"> <Label> My label <input type="text" name="my-field" /> </Label> </form>