1. Collections Component Guide
  2. Form input
  3. With suffix
Form input example

With suffix

To help users understand how the input should look like. Often used for units of measurement.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/input", {
  label: {
    text: "Lead times in days"
  },
  name: "lead-times",
  width: 10,
  suffix: "days"
} %>