Buckets:
32.9 GB
31,201 files
Updated 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| app | 9 items | ||
| components | 2 items | ||
| public | 4 items | ||
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 1.48 kB xet | 0d8d0d57 | |
| app.css | 316 Bytes xet | 1b768b73 | |
| next.config.js | 268 Bytes xet | 35840727 | |
| package.json | 334 Bytes xet | 70b9eb69 | |
| styles.module.css | 849 Bytes xet | ebb3252a | |
| tsconfig.json | 605 Bytes xet | f63dd378 |
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
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