Sha256: 58914b930c01cde2c3fd878b73d6c83a4c59eaf45e44533f0b823baf6f3b1b59

Contents?: true

Size: 1.51 KB

Versions: 8

Compression:

Stored size: 1.51 KB

Contents

name: Form textarea
description: A textarea field and an associated label
govuk_frontend_components:
  - textarea
accessibility_criteria: |
  The component must:

  - accept focus
  - be focusable with a keyboard
  - be usable with a keyboard
  - be usable with touch
  - indicate when they have focus
  - be recognisable as form textarea elements
  - have correctly associated labels

  Labels use the [label component](/component-guide/label).
examples:
  default:
    data:
      label:
        text: "Can you provide more detail?"
      name: "more-detail"
  specific_rows:
    description: Textarea with 10 rows
    data:
      label:
        text: "Can you provide more detail?"
      name: "more-detail-rows"
      rows: 10
  with_hint:
    data:
      label:
        text: "Can you provide more detail?"
      name: "with-hint"
      hint: "Please include as much information as possible."
  with_error:
    data:
      label:
        text: "Can you provide more detail?"
      name: "more-detail-error"
      error_message: "Please could you provide more detail"
  with_error_items:
    data:
      label:
        text: "Can you provide more detail?"
      name: "more-detail-error"
      error_items:
      - text: Descriptive link to the question with an error 1
        href: '#example-error-1'
      - text: Descriptive link to the question with an error 2
        href: '#example-error-2'
  with_value:
    data:
      label:
        text: "Can you provide more detail?"
      name: "more-detail-value"
      value: "More detail"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-12.14.1 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.14.0 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.13.0 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.12.1 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.12.0 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.11.0 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.10.0 app/views/govuk_publishing_components/components/docs/textarea.yml
govuk_publishing_components-12.9.1 app/views/govuk_publishing_components/components/docs/textarea.yml