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.16k stars 320 forks source link

Export `GOVUKFrontendComponent` publicly as `Component` #5327

Open romaricpascal opened 1 week ago

romaricpascal commented 1 week ago

What

Export GOVUKFrontendComponent publicly, renaming it as Component.

Why

This will let services and other design systems use the class for their own components, providing them with the checks for support and root element

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

romaricpascal commented 1 week ago

question Would it be worth adding a typescript-integration project as part of this work to check that people using TypeScript to check their JSDoc can extend the component as intended?