Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
84716ae6
Unverified
Commit
84716ae6
authored
Nov 14, 2020
by
Steven
Committed by
GitHub
Nov 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add next/image docs for omitted props (#19158)
This will make it clear which properties are not allowed
parent
7aa8c2c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
image.md
docs/api-reference/next/image.md
+5
-1
No files found.
docs/api-reference/next/image.md
View file @
84716ae6
...
@@ -139,7 +139,11 @@ When true, the source image will be served as-is instead of changing quality, si
...
@@ -139,7 +139,11 @@ When true, the source image will be served as-is instead of changing quality, si
## Other Props
## Other Props
All other properties on the
`Image`
component will be passed to the underlying
`img`
element, except for
`style`
. Use
`className`
instead.
Other properties on the
`Image`
component will be passed to the underlying
`img`
element with the exception of the following:
-
`style`
. Use
`className`
instead.
-
`srcSet`
. Use
[
Device Sizes
](
/docs/basic-features/image-optimization.md#device-sizes
)
instead.
-
`decoding`
. It is always
`"async"`
.
## Related
## Related
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment