UNPKG

@dwp/govuk-casa

Version:

A framework for building GOVUK Collect-And-Submit-Applications

32 lines (19 loc) 819 B
# Textarea Extends the [`govukTextarea()`](https://design-system.service.gov.uk/components/textarea/) macro. Custom parameters: - `casaErrors` - form errors (just pass `formErrors`) ## Example usage Basic example: ```nunjucks {% from "casa/components/textarea/macro.njk" import casaGovukTextarea with context %} casaGovukTextarea({ name: "name", value: formData.name, casaErrors: formErrors }) ``` ## Google Tag Manager The following attributes will be attached to the error `<p>` tag if `casaWithAnalytics` is `true`: - `data-ga-question`: Holds the fieldset label's text content after removing all html tags These are the conventions used by DWP. > **IMPORTANT:** DO NOT ENABLE this option if the question or answer may contain personally-identifiable information as values will be pushed to Google