Skip to content

Commit 62f9304

Browse files
fix(docs): Update Back to top documentation to use jsx syntax (#3061)
1 parent 834192b commit 62f9304

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/content/docs/components/back-to-top.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Smooth scrolling does not depend on this component. It’s turned on only when t
3535
</nav>
3636
</div>
3737

38-
<Example showPreview="false" code={`<nav aria-label="Back to top" class="back-to-top">
38+
<Example showPreview={false} code={`<nav aria-label="Back to top" class="back-to-top">
3939
<a href="#top" class="back-to-top-link btn btn-icon btn-outline-secondary" data-bs-label="Back to top">
4040
<span class="visually-hidden">Back to top</span>
4141
</a>
@@ -52,7 +52,7 @@ You may use another `id`, but if you’re using a fixed header you’ll need to
5252

5353
Add `.position-fixed` utility to your `.back-to-top-link` to make your back-to-top link persistent.
5454

55-
<Example showPreview="false" code={`<nav aria-label="Fixed back to top example" class="back-to-top">
55+
<Example showPreview={false} code={`<nav aria-label="Fixed back to top example" class="back-to-top">
5656
<a href="#top" class="back-to-top-link position-fixed btn btn-icon btn-outline-secondary" data-bs-label="Back to top">
5757
<span class="visually-hidden">Back to top</span>
5858
</a>
@@ -69,7 +69,7 @@ Use a `title` attribute instead of `data-bs-label` to ensure a visible label is
6969
</a>
7070
</nav>
7171
</div>
72-
<Example showPreview="false" code={`<nav aria-label="Back to top" class="back-to-top">
72+
<Example showPreview={false} code={`<nav aria-label="Back to top" class="back-to-top">
7373
<a href="#top" class="back-to-top-link btn btn-icon btn-outline-secondary" title="Back to top">
7474
<span class="visually-hidden">Back to top</span>
7575
</a>

0 commit comments

Comments
 (0)