You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/reference/overrides.md
+10
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,12 @@ JavaScript `Date` object representing when this page was last updated if enabled
135
135
136
136
`URL` object for the address where this page can be edited if enabled.
137
137
138
+
#### `labels`
139
+
140
+
**Type:**`Record<string, string>`
141
+
142
+
An object containing UI strings localized for the current page. See the [“Translate Starlight’s UI”](/guides/i18n/#translate-starlights-ui) guide for a list of all the available keys.
143
+
138
144
---
139
145
140
146
## Components
@@ -228,6 +234,10 @@ The default implementation includes logic for rendering logos defined in Starlig
228
234
Component used to render Starlight’s search UI.
229
235
The default implementation includes the button in the header and the code for displaying a search modal when it is clicked and loading [Pagefind’s UI](https://pagefind.app/).
230
236
237
+
When [`pagefind`](/reference/configuration/#pagefind) is disabled, the default search component will not be rendered.
238
+
However, if you override `Search`, your custom component will always be rendered even if the `pagefind` configuration option is `false`.
239
+
This allows you to add UI for alternative search providers when disabling Pagefind.
0 commit comments