Form input example

With prefix

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: "Cost, in pounds"
  },
  name: "cost",
  width: 10,
  prefix: "£"
} %>