Unverified Commit 380986c5 authored by Daigo Shitara's avatar Daigo Shitara Committed by GitHub

fix typo in API Reference - Image Component (#55776)

removed unnecessary parentheses
Co-authored-by: 's avatarSteven <229881+styfle@users.noreply.github.com>
parent 965fcfa0
...@@ -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 | ------------------------------------ | --------------- | -------- | |
| [`width`](#width) | `width={500}` | Integer (px) | Yes | [`src`](#src) | `src="/profile.png"` | String | Yes | | [`width`](#width) |
| [`height`](#height) | `height={500}` | Integer (px) | Yes | `width={500}` | Integer (px) | Yes | | [`height`](#height) | `height={500}` |
| [`alt`](#alt) | `alt="Picture of the author"` | String | Yes | Integer (px) | Yes | | [`alt`](#alt) | `alt="Picture of the author"` | String
| [`loader`](#loader) | `loader={imageLoader}` | Function | - | | Yes | | [`loader`](#loader) | `loader={imageLoader}` | Function | - | |
| [`fill`](#fill) | `fill={true}` | Boolean | - | [`fill`](#fill) | `fill={true}` | Boolean | - | | [`sizes`](#sizes) |
| [`sizes`](#sizes) | `sizes="(max-width: 768px) 100vw"` | String | - | `sizes="(max-width: 768px) 100vw"` | String | - | | [`quality`](#quality) |
| [`quality`](#quality) | `quality={80}` | Integer (1-100) | - | `quality={80}` | Integer (1-100) | - | | [`priority`](#priority) | `priority=
| [`priority`](#priority) | `priority={true}` | Boolean | - | {true}` | Boolean | - | | [`placeholder`](#placeholder) | `placeholder="blur"`
| [`placeholder`](#placeholder) | `placeholder="blur"` | String | - | | String | - | | [`style`](#style) | `style={{ objectFit: 'contain' }}` | Object
| [`style`](#style) | `style={{objectFit: "contain"}}` | Object | - | | - | | [`onLoadingComplete`](#onloadingcomplete) | `onLoadingComplete=
| [`onLoadingComplete`](#onloadingcomplete) | `onLoadingComplete={img => done())}` | Function | - | {(img) => done()}` | Function | - | | [`onLoad`](#onload) | `onLoad=
| [`onLoad`](#onload) | `onLoad={event => done())}` | Function | - | {(event) => done()}` | Function | - | | [`onError`](#onerror) | `onError(event
| [`onError`](#onerror) | `onError(event => fail()}` | Function | - | => fail()}` | Function | - | | [`loading`](#loading) | `loading="lazy"` | String
| [`loading`](#loading) | `loading="lazy"` | String | - | | - | | [`blurDataURL`](#blurdataurl) | `blurDataURL="data:image/jpeg..."` | 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