Skip to content

Commit 9f71d77

Browse files
committed
update partial examples
1 parent 6ae5075 commit 9f71d77

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

src/content/partials/style-guide/code-in-props.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,22 @@ import { Code } from "~/components";
99

1010
**Don't do this!**
1111

12-
`` `{props.code}` ``
12+
`{props.code}`
1313

1414
**Do this!**
1515

16-
`<code>{props.code}</code>`
17-
<code>{props.code}</code>
16+
<p><code>{props.code}</code></p>
1817

1918
<hr />
2019

2120
#### Codeblocks
2221

2322
**Don't do this!**
2423

25-
````
26-
```js
27-
{props.code}
28-
```
29-
````
30-
3124
```js
3225
{props.code}
3326
```
3427

3528
**Do this!**
3629

37-
`<Code code={props.code} lang="js" />`
3830
<Code code={props.code} lang="js" />

src/content/partials/style-guide/image-in-props.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ params:
99

1010
**Do this!**
1111

12-
`<img src={props.image} alt="Alt text" />`
1312
<img src={props.image} alt="Alt text" />

src/content/partials/style-guide/link-in-props.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ params:
77

88
This will link to `/style-guide/components/%7Bprops.link%7D`.
99

10-
`[Markdown link]({props.link})`
11-
1210
[Markdown link]({props.link})
1311

1412
**Do this!**
1513

1614
This will link to `style-guide/components/render/#links`.
1715

18-
`<a href={props.link}>JSX link</a>`
19-
20-
<a href={props.link}>JSX link</a>
16+
<p><a href={props.link}>JSX link</a></p>

src/content/partials/style-guide/strong-in-props.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ params:
66

77
**Don't do this!**
88

9-
`{props.dont}`
109
{props.dont}
1110

1211
**Do this!**
1312

14-
`<strong>{props.do}</strong>`
1513
<strong>{props.do}</strong>

0 commit comments

Comments
 (0)