daniel-ac-martin / NotGovUK

An implementation of the GOV.UK Design System in React that provides support for writing internal applications in addition to public ones.
https://not-gov.uk/
MIT License
27 stars 8 forks source link

Add Next.js support #1039

Open daniel-ac-martin opened 2 weeks ago

daniel-ac-martin commented 2 weeks ago

Adds rudimentary support for Next.js.

Not all components are supported. You should import the components from the new @not-govuk/simple-components NPM package.

This support should be considered experimental for now.

Partially addresses: #858

daniel-ac-martin commented 2 weeks ago

This implementation currently requires next to be installed as a dependency. We might need to use require.context (or find a way to get dynamic imports to work) so that we only import the module when it is available...