diff --git a/components/frames.mdx b/components/frames.mdx index 03d3d08cb..5934c8b09 100644 --- a/components/frames.mdx +++ b/components/frames.mdx @@ -18,6 +18,18 @@ Add additional context to an image using the optional `caption` prop. Captions a Photograph of Yosemite Valley. +### Markdown in captions + +Captions support markdown formatting, including links and bold text. + + + Photograph of Yosemite Valley. + + + + Photograph of a lake surrounded by trees with mountains in the distance in Yellowstone National Park. + + ## Hints Add text that precedes the frame using the optional `hint` prop. Hints appear above the frame. @@ -29,7 +41,7 @@ Add text that precedes the frame using the optional `hint` prop. Hints appear ab ## Properties - Text that appears as part of the frame, centered below the content. + Text that appears as part of the frame, centered below the content. Supports markdown formatting including links and bold text. @@ -50,6 +62,18 @@ Add text that precedes the frame using the optional `hint` prop. Hints appear ab ``` +```mdx Frame with markdown in caption + + Descriptive alt text + +``` + +```mdx Frame with bold text and links in caption + + Descriptive alt text + +``` + ```mdx Frame with a hint Descriptive alt text