9569f5a31a
This PR deprecates the `unsized` property from NextImage because the property did not accomplish the desired effect. Users should rely on one of the new layouts instead: - `<Image layout="fixed" />` - `<Image layout="intrinsic" />` - `<Image layout="responsive" />` - `<Image layout="fill" />` The `unsized` property will continue to work as-is in production but is deprecated and will throw in dev. --- ### TODO: - [x] test `layout=fill` in typescript types - [x] test `layout=fill` render behavior - [x] test that `unsized` switches to `layout=fill` - [x] test `next dev` erroring on `unsized` - [ ] layout docs (tracked in issue #18554) - [ ] both `layout=fill` and `layout=responsive` use all deviceWidths in the srcset --- Fixes #18541 Co-authored-by: Steven <steven@ceriously.com> |
||
---|---|---|
.. | ||
advanced-features | ||
api-reference | ||
api-routes | ||
basic-features | ||
migrating | ||
routing | ||
deployment.md | ||
faq.md | ||
getting-started.md | ||
manifest.json | ||
upgrading.md |