GOVUK Text input

An example of the govuk text input component.




<div class="govuk-form-group">
  <label class="govuk-label" for="event-name">
    Event name
  </label>

<input class="govuk-input" id="event-name" name="event-name" type="text">
</div>

{% from "govuk_frontend_jinja/components/input/macro.html" import govukInput -%}
{{ govukInput({
    "label": {
      "text": "Event name"
    },
    "id": "event-name",
    "name": "event-name"
}) }}