1. Component Guide
  2. Form textarea
  3. With data attributes
Form textarea example

With data attributes

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/textarea", {
  label: {
    text: "This textarea has a data attribute"
  },
  name: "with_data_attrbutes",
  data: {
    module: "some-awesome-module-here"
  }
} %>