#select dropdown with images doesn't work!
1 messages · Page 1 of 1 (latest)
Hmm, I don't know enough to give you a confident answer yet. However, I can provide you with some information about the Next.js Image component, which might be helpful in your case.
Next.js 13 introduced a powerful new Image component that allows you to easily display images without layout shift and optimize files on-demand for increased performance. You can import and use the Image component like this:
import Image from 'next/image';
import avatar from './lee.png';
function Home() {
// "alt" is now required for improved accessibility
// optional: image files can be colocated inside the app/ directory
return <Image alt="leeerob" src={avatar} placeholder="blur" />;
}
Learn more about the Image component (https://nextjs.org/docs/basic-features/image-optimization) or deploy an example to try it out (https://vercel.com/templates/next.js/nextjs-boilerplate).
For more information on the properties available to the next/image component, you can view all properties here (https://nextjs.org/docs/api-reference/next/image).