Skip to main content

Caption Provider

The Caption Provider displays captions around a child component. This can be used to caption Images or Embeds.

A 3D render done in Unreal Engine 4.

Example#

An Image with captions

<CaptionProvider    caption="A 3D render done in Unreal Engine 4."     source="Faraz Shaikh - UE4 (2020)"     sourceUrl="https://www.artstation.com/artwork/3oNzOE" >    <Image         src="https://cdnb.artstation.com/p/assets/images/images/023/618/593/large/faraz-shaikh-sign-1-1-1.jpg?1579790914"     /></CaptionProvider>

Props#

PropTypeDefaultRequired
captionstringnonefalse
sourcestring"Source"false
sourceUrlstringnonefalse

caption#

The caption to the image.

source#

The text for the link to the source.

sourceUrl#

The URL of the source. If not present, the source line will not be shown.