Unverified Commit 84716ae6 authored by Steven's avatar Steven Committed by GitHub

Add next/image docs for omitted props (#19158)

This will make it clear which properties are not allowed
parent 7aa8c2c7
...@@ -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
......
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