codegouvfr / react-dsfr

🇫🇷 The French Government Design system React toolkit
https://react-dsfr.codegouv.studio
MIT License
416 stars 55 forks source link

Footer operatorLogo & next/image #111

Open sylvainlg opened 1 year ago

sylvainlg commented 1 year ago

Hi, I'm new using the package and i want to know how to use the operator Logo.image with Next JS & next/image features. Do you made it already ? Thanks

enguerranws commented 1 year ago

Hi!

Right now, I think you can't use a next/image component as a value of operatorLogo prop (https://github.com/codegouvfr/react-dsfr/blob/main/src/Footer.tsx#L28).

We could consider adjusting this prop to accept its current type and a ReactNode (or something more restrictive)?

garronej commented 1 year ago

@sylvainlg would you link me the relevent next.js doc

sylvainlg commented 1 year ago

Hi The next documentation : https://nextjs.org/docs/api-reference/next/image