silverwolf-x/project / examples /image-component
32.9 GB
31,201 files
Updated 2 months ago
Name
Size
app
components
public
.gitignore437 Bytes
xet
README.md1.48 kB
xet
app.css316 Bytes
xet
next.config.js268 Bytes
xet
package.json334 Bytes
xet
styles.module.css849 Bytes
xet
tsconfig.json605 Bytes
xet
README.md

Image Component Example

This example shows how to use the Image Component in Next.js serve optimized, responsive images.

The root page (app/page.tsx) has a couple images, one internal image and one external image. In next.config.js, the domains property is used to enable external images. The other pages demonstrate the different layouts. Run or deploy the app to see how it works!

Live demo

https://image-component.nextjs.gallery

Deploy your own

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example image-component image-app
yarn create next-app --example image-component image-app
pnpm create next-app --example image-component image-app

Deploy it to the cloud with Vercel (Documentation).

Total size
32.9 GB
Files
31,201
Last updated
Sep 26
Pre-warmed CDN
US EU US EU

Contributors