未验证 提交 84716ae6 编写于 作者: S Steven 提交者: GitHub

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

This will make it clear which properties are not allowed
上级 7aa8c2c7
......@@ -139,7 +139,11 @@ When true, the source image will be served as-is instead of changing quality, si
## 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册