Sha256: 9ca70f18641125a350e5abb8805ad131b546aa38858b2403d43e49c231a52621

Contents?: true

Size: 1004 Bytes

Versions: 8

Compression:

Stored size: 1004 Bytes

Contents

name: Checkbox
description: Let users select one or more options by using the checkboxes component. 
body: This component is used by [Form checkboxes component](/component-guide/checkboxes).
govuk_frontend_components:
  - checkboxes
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
  - have correctly associated labels

  Labels use the [label component](/component-guide/label).
examples:
  default:
    data:
      name: "favourite_colour_default"
      item:
        label: "Red"
        value: "red_colour"
  checkbox_with_hint:
    data:
      name: "favourite_colour_checkbox_with_hint"
      item:
        label: "Red"
        value: "red_colour"
        hint: "This is the colour red."
  checkbox_with_checked:
    data:
      name: "favourite_colour_checkbox_with_checked"
      item:
        label: "Red"
        value: "red_colour"
        checked: true

Version data entries

8 entries across 8 versions & 1 rubygems

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