Skip to content

Commit 2736132

Browse files
delucisastrobot-houston
authored andcommitted
[ci] format
1 parent 140e729 commit 2736132

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/content/docs/guides/overriding-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Learn more about all the available props in the [Overrides Reference](/reference
106106

107107
### Only override on specific pages
108108

109-
Component overrides apply to all pages. However, you can conditionally render using values from `Astro.props` to determine when to show your custom UI, when to show Starlight’s default UI, or even when to show something entirely different.
109+
Component overrides apply to all pages. However, you can conditionally render using values from `Astro.props` to determine when to show your custom UI, when to show Starlight’s default UI, or even when to show something entirely different.
110110

111111
In the following example, a component overriding Starlight's [`Footer`](/reference/overrides/#footer-1) displays "Built with Starlight 🌟" on the homepage only, and otherwise shows the default footer on all other pages:
112112

packages/starlight/components/Sidebar.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ const { sidebar } = Astro.props;
99

1010
<SidebarSublist sublist={sidebar} />
1111
<div class="md:sl-hidden">
12-
<MobileMenuFooter {...Astro.props} />
12+
<MobileMenuFooter {...Astro.props} />
1313
</div>

0 commit comments

Comments
 (0)