Skip to content

Commit ec433a7

Browse files
authored
Merge pull request #1840 from NYPL/DSD-2074/format-headers-basic-elements
DSD-2074: Story headers for Basic Elements
2 parents 0ba3e9c + 6afbec8 commit ec433a7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/components/FeaturedContent/FeaturedContent.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ import { changelogData } from "./featuredContentChangelogData";
33
import ComponentChangelogTable from "../../utils/ComponentChangelogTable";
44
import * as FeaturedContentStories from "./FeaturedContent.stories";
55
import Link from "../Link/Link";
6+
import ComponentDocsHeader from "../../utils/components/ComponentDocsHeader";
67

78
<Meta of={FeaturedContentStories} />
89

9-
# Featured Content
10+
<ComponentDocsHeader
11+
category="Basic Element"
12+
componentName="FeaturedContent"
13+
summary="A full-width container that visually emphasizes an image and text block"
14+
versionAdded="2.1.0"
15+
versionLatest="Prerelease"
16+
/>
1017

11-
| Component Version | DS Version |
12-
| ----------------- | ------------ |
13-
| Added | `2.1.0` |
14-
| Latest | `Prerelease` |
18+
<Canvas of={FeaturedContentStories.WithControls} />
1519

1620
## Table of Contents
1721

@@ -25,13 +29,13 @@ import Link from "../Link/Link";
2529

2630
## Overview
2731

32+
<Description of={FeaturedContentStories} />
33+
2834
The `FeaturedContent` component provides a method to visually emphasize a text
2935
block with an image, within a full page layout.
3036

3137
## Component Props
3238

33-
<Canvas of={FeaturedContentStories.WithControls} />
34-
3539
`FeaturedContent` composes a Chakra `Box` component, so you may pass
3640
any Chakra `Box` props, as well as the props below.
3741

0 commit comments

Comments
 (0)