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: apps/portal/src/content/docs/components/search-box.mdx
+43-19Lines changed: 43 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
1
---
2
-
title: Search Box
3
-
description: Search Box component documentation
2
+
title: SearchBox
3
+
description: SearchBox component documentation
4
4
---
5
5
6
-
The Search Box component provides a UI element for entering search queries. It includes optional features like search icon, keyboard shortcuts, and custom content.
6
+
The `SearchBox` component provides a UI element for entering search queries. It includes optional features like search icon, keyboard shortcuts, and custom content.
7
7
8
8
import { DocsPage } from"@/components/docs-page";
9
9
10
10
<DocsPage.ComponentExample
11
11
client:only
12
12
code={`<SearchBox.Root
13
-
placeholder="Search..."
14
-
hasSearchIcon={true}
15
-
hasShortcut={true}
16
-
shortcutLetter="K"
17
-
shortcutModifier="alt"
18
-
width="fixed"
19
-
textSize="text-sm"
20
-
showOnFocus={false}
13
+
placeholder="Search..."
14
+
hasSearchIcon={true}
15
+
hasShortcut={true}
16
+
shortcutLetter="K"
17
+
shortcutModifier="alt"
18
+
width="fixed"
19
+
textSize="text-sm"
20
+
showOnFocus={false}
21
21
/>
22
22
`}
23
23
/>
@@ -29,19 +29,43 @@ import { SearchBox } from '@harnessio/ui/components'
29
29
30
30
return (
31
31
<SearchBox.Root
32
-
placeholder="Search..."// [REQUIRED] Placeholder text
33
-
hasSearchIcon={true}// [OPTIONAL] Show search icon
0 commit comments