@@ -4,6 +4,7 @@ import Page from '../Page';
44import useToolkit from '../toolkit/useToolkit' ;
55import customImageRendererConfig from './cards/customImageRendererConfig' ;
66import internalImageRendererConfig from './cards/internalImageRendererConfig' ;
7+ import imagesWithHeadersConfig from './cards/imagesWithHeadersConfig' ;
78import InternalRendererAdmonition from '../components/InternalRendererAdmonition' ;
89
910const inlineExample = `<img
@@ -248,13 +249,32 @@ export default function PageContentImages() {
248249 </ Section >
249250 </ Chapter >
250251 < Chapter title = "Configuring" >
251- < Paragraph >
252- We can take advantage of the{ ' ' }
253- < RefRenderHtmlProp name = "renderersProps" /> to customize images
254- behavior (see{ ' ' }
255- < RefRenderHTMLExport name = "RenderersProps" member = "img" full />
256- ).
257- </ Paragraph >
252+ < Section title = "Providing headers" >
253+ < Paragraph >
254+ You can take advantage of the{ ' ' }
255+ < RefRenderHtmlProp name = "provideEmbeddedHeaders" />
256+ prop to pass headers to the image fetching conditionnaly. For
257+ example:
258+ </ Paragraph >
259+ < RenderHtmlCard { ...imagesWithHeadersConfig } />
260+ < Admonition type = "tip" >
261+ In this example, we are using a Bearer token to access a restricted
262+ resource. We could also use headers to take advantage of the new{ ' ' }
263+ < Hyperlink url = "https://wicg.github.io/responsive-image-client-hints/" >
264+ Responsive Image Client Hints
265+ </ Hyperlink > { ' ' }
266+ standard.
267+ </ Admonition >
268+ </ Section >
269+ < Section title = "Advanced configuration" >
270+ < Paragraph >
271+ We can take advantage of the{ ' ' }
272+ < RefRenderHtmlProp name = "renderersProps" /> to customize images
273+ behavior (see{ ' ' }
274+ < RefRenderHTMLExport name = "RenderersProps" member = "img" full />
275+ ).
276+ </ Paragraph >
277+ </ Section >
258278 </ Chapter >
259279 </ Page >
260280 ) ;
0 commit comments