Module: GovukPublishingComponents::ComponentWrapperHelperOptions

Defined in:
app/models/govuk_publishing_components/component_wrapper_helper_options.rb

Class Method Summary collapse

Class Method Details

.descriptionObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'app/models/govuk_publishing_components/component_wrapper_helper_options.rb', line 3

def self.description
  "
This component uses the component wrapper helper. It accepts the following options and applies them to the parent element of the component. See the [component wrapper helper documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/component-wrapper-helper.md) for more detail.

- `id` - accepts a string for the element ID attribute
- `data_attributes` - accepts a hash of data attributes
- `aria` - accepts a hash of aria attributes
- `classes` - accepts a space separated string of classes, these should not be used for styling and must be prefixed with `js-`
- `role` - accepts a space separated string of roles
- `lang` - accepts a language attribute value
  "
end