react-dsfr icon indicating copy to clipboard operation
react-dsfr copied to clipboard

Footer operatorLogo & next/image

Open sylvainlg opened this issue 2 years ago • 3 comments

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

sylvainlg avatar Apr 18 '23 14:04 sylvainlg

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)?

enguerranws avatar Apr 24 '23 09:04 enguerranws

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

garronej avatar Apr 24 '23 15:04 garronej

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

sylvainlg avatar May 03 '23 08:05 sylvainlg