Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Styling Section to next/image component docs #28055

Merged
merged 6 commits into from Aug 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api-reference/next/image.md
Expand Up @@ -263,6 +263,10 @@ Other properties on the `<Image />` component will be passed to the underlying
- `ref`. Use [`onLoadingComplete`](#onloadingcomplete) instead.
- `decoding`. It is always `"async"`.

## Styling

To apply more advanced styles to the underlying `img` element pass the `className` prop to the `<Image />` component and then add use Next.js's [built-in CSS support](docs/basic-features/built-in-css-support) to style that class.
leerob marked this conversation as resolved.
Show resolved Hide resolved

## Related

For more information on what to do next, we recommend the following sections:
Expand Down