Unverified Commit 27b89e4a authored by Steven's avatar Steven Committed by GitHub

chore(docs): fix missing fallback on next/image sizes example (#56718)

This example use of `sizes` was missing the fallback.

Its best to review with [`?w=1`](https://github.com/vercel/next.js/pull/56718/files?w=1)
parent 92cccfb4
...@@ -41,14 +41,14 @@ Here's a summary of the props available for the Image Component: ...@@ -41,14 +41,14 @@ Here's a summary of the props available for the Image Component:
<div style={{ overflowX: 'auto', width: '100%' }}> <div style={{ overflowX: 'auto', width: '100%' }}>
| Prop | Example | Type | Status | | Prop | Example | Type | Status |
| ----------------------------------------- | ------------------------------------ | --------------- | ---------- | | ----------------------------------------- | ---------------------------------------- | --------------- | ---------- |
| [`src`](#src) | `src="/profile.png"` | String | Required | | [`src`](#src) | `src="/profile.png"` | String | Required |
| [`width`](#width) | `width={500}` | Integer (px) | Required | | [`width`](#width) | `width={500}` | Integer (px) | Required |
| [`height`](#height) | `height={500}` | Integer (px) | Required | | [`height`](#height) | `height={500}` | Integer (px) | Required |
| [`alt`](#alt) | `alt="Picture of the author"` | String | Required | | [`alt`](#alt) | `alt="Picture of the author"` | String | Required |
| [`loader`](#loader) | `loader={imageLoader}` | Function | - | | [`loader`](#loader) | `loader={imageLoader}` | Function | - |
| [`fill`](#fill) | `fill={true}` | Boolean | - | | [`fill`](#fill) | `fill={true}` | Boolean | - |
| [`sizes`](#sizes) | `sizes="(max-width: 768px) 100vw"` | String | - | | [`sizes`](#sizes) | `sizes="(max-width: 768px) 100vw, 33vw"` | String | - |
| [`quality`](#quality) | `quality={80}` | Integer (1-100) | - | | [`quality`](#quality) | `quality={80}` | Integer (1-100) | - |
| [`priority`](#priority) | `priority={true}` | Boolean | - | | [`priority`](#priority) | `priority={true}` | Boolean | - |
| [`placeholder`](#placeholder) | `placeholder="blur"` | String | - | | [`placeholder`](#placeholder) | `placeholder="blur"` | String | - |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment