Unverified Commit 814db26c authored by Dom Sip's avatar Dom Sip Committed by GitHub

Revert "fix typo in API Reference - Image Component" (#55889)

Currently the image props section is broken:
https://nextjs.org/docs/pages/api-reference/components/image



Reverts vercel/next.js#55776

fixes: [#55869](https://github.com/vercel/next.js/issues/55869)
parent 951af1d9
...@@ -40,24 +40,24 @@ export default function Page() { ...@@ -40,24 +40,24 @@ export default function Page() {
Here's a summary of the props available for the Image Component: 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 | Required | | | Prop | Example | Type | Required |
----------------------------------------- | | ----------------------------------------- | ------------------------------------ | --------------- | -------- |
------------------------------------ | --------------- | -------- | | | [`src`](#src) | `src="/profile.png"` | String | Yes |
[`src`](#src) | `src="/profile.png"` | String | Yes | | [`width`](#width) | | [`width`](#width) | `width={500}` | Integer (px) | Yes |
`width={500}` | Integer (px) | Yes | | [`height`](#height) | `height={500}` | | [`height`](#height) | `height={500}` | Integer (px) | Yes |
Integer (px) | Yes | | [`alt`](#alt) | `alt="Picture of the author"` | String | [`alt`](#alt) | `alt="Picture of the author"` | String | Yes |
| Yes | | [`loader`](#loader) | `loader={imageLoader}` | Function | - | | | [`loader`](#loader) | `loader={imageLoader}` | Function | - |
[`fill`](#fill) | `fill={true}` | Boolean | - | | [`sizes`](#sizes) | | [`fill`](#fill) | `fill={true}` | Boolean | - |
`sizes="(max-width: 768px) 100vw"` | String | - | | [`quality`](#quality) | | [`sizes`](#sizes) | `sizes="(max-width: 768px) 100vw"` | String | - |
`quality={80}` | Integer (1-100) | - | | [`priority`](#priority) | `priority= | [`quality`](#quality) | `quality={80}` | Integer (1-100) | - |
{true}` | Boolean | - | | [`placeholder`](#placeholder) | `placeholder="blur"` | [`priority`](#priority) | `priority={true}` | Boolean | - |
| String | - | | [`style`](#style) | `style={{ objectFit: 'contain' }}` | Object | [`placeholder`](#placeholder) | `placeholder="blur"` | String | - |
| - | | [`onLoadingComplete`](#onloadingcomplete) | `onLoadingComplete= | [`style`](#style) | `style={{objectFit: "contain"}}` | Object | - |
{(img) => done()}` | Function | - | | [`onLoad`](#onload) | `onLoad= | [`onLoadingComplete`](#onloadingcomplete) | `onLoadingComplete={img => done())}` | Function | - |
{(event) => done()}` | Function | - | | [`onError`](#onerror) | `onError(event | [`onLoad`](#onload) | `onLoad={event => done())}` | Function | - |
=> fail()}` | Function | - | | [`loading`](#loading) | `loading="lazy"` | String | [`onError`](#onerror) | `onError(event => fail()}` | Function | - |
| - | | [`blurDataURL`](#blurdataurl) | `blurDataURL="data:image/jpeg..."` | String | [`loading`](#loading) | `loading="lazy"` | String | - |
| - | | [`blurDataURL`](#blurdataurl) | `blurDataURL="data:image/jpeg..."` | String | - |
</div> </div>
## Required Props ## Required Props
......
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