alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.17k stars 320 forks source link

[Stretch] Investigate how to initialise multiple components on a single element #5216

Open romaricpascal opened 1 month ago

romaricpascal commented 1 month ago

What

Investigate how to allow data-module to contain a space separated list of components and initialise each of the components on the element when initialising components.

We'll need to consider the ordering of the initialisation: should it follow the list of components passed to the initialisation function or the found elements and the order in their data-module?

Why

This is a feature that GOV.UK component initialisation supports and other services may benefit from.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when