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
{{ message }}
Repository navigation
Commit f20a531
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: frontend/purestack.studio/components/site/search-box/search-box.mdx
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,8 @@ The live field above searches the real documentation index. Try a matching term,
86
86
<divclass="component-appearance-cell">
87
87
<code>Empty query</code>
88
88
<pclass="m-0">
89
-
The search field is visible; the results region stays hidden until a
90
-
query is entered.
89
+
Focus the search field to see a search prompt. Enter at least two
90
+
characters to search the site.
91
91
</p>
92
92
</div>
93
93
<divclass="component-appearance-cell">
@@ -114,7 +114,7 @@ The live field above searches the real documentation index. Try a matching term,
114
114
</div>
115
115
</ComponentExample>
116
116
117
-
The current implementation derives its placeholder from site.siteTitle, even when a placeholder prop is supplied. Use the site title to configure the visible default; the API below describes the accepted prop separately.
117
+
The default placeholder uses site.siteTitle. Supply a placeholder prop to customize the field for its context.
118
118
119
119
## Feature map
120
120
@@ -130,6 +130,8 @@ This component exposes tone and variant, but no variantMode.
130
130
131
131
Pagefind indexes the built HTML, so new content appears after a successful indexed build. SearchBox does not fetch application records or replace autocomplete. Keyboard behavior and results are provided by the standard Pagefind search runtime.
132
132
133
+
Press `/` outside an editable field to focus the first visible search box. Use the up and down arrow keys to move between results, Enter to open the focused link, and Escape to dismiss the panel. Tab follows the normal link order. Result counts and search errors are announced to screen readers.
134
+
133
135
## API reference
134
136
135
137
<divclass="api-overview">
@@ -179,8 +181,8 @@ Pagefind indexes the built HTML, so new content appears after a successful index
179
181
defaultValue="Search + site title"
180
182
>
181
183
<p>
182
-
The current component derives its placeholder from site.siteTitle. The
183
-
registered placeholder prop is not read by the resolver.
184
+
Custom field placeholder. When omitted, the component uses site.siteTitle,
0 commit comments