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: packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx
+22-40Lines changed: 22 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,15 +113,11 @@ This example uses an `<input>` element for the search field.
113
113
A "contains" filter function is obtained from <TypeLinklinks={i18nDocs.links}type={i18nDocs.exports.useFilter} /> and is passed to <TypeLinklinks={statelyDocs.links}type={statelyDocs.exports.useComboBoxState} /> so
114
114
that the list box can be filtered based on the option text and the current input text.
115
115
116
-
The list box popup should use the same `Popover` and `ListBox` components created with [useOverlay](useOverlay.html)
116
+
The list box popup should use the same `Popover` and `ListBox` components created with [usePopover](usePopover.html)
117
117
and [useListBox](useListBox.html) that you may already have in your component library or application. These can be shared with other
118
118
components such as a `Select` created with [useSelect](useSelect.html) or a `Dialog` popover created with [useDialog](useDialog.html).
119
119
The code for these components is also included below in the collapsed sections.
120
120
121
-
This example does not do any advanced popover positioning or portaling to escape its visual container.
122
-
See [useOverlayTrigger](useOverlayTrigger.html) for an example of how to implement this
123
-
using <TypeLinklinks={overlaysDocs.links}type={overlaysDocs.exports.useOverlayPosition} />.
124
-
125
121
In addition, see [useListBox](useListBox.html) for examples of sections (option groups), and more complex
126
122
options.
127
123
@@ -174,7 +170,7 @@ function SearchAutocomplete(props) {
Copy file name to clipboardExpand all lines: packages/@react-aria/combobox/docs/useComboBox.mdx
+23-41Lines changed: 23 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,15 +129,11 @@ is included within the `<button>` to display the dropdown arrow icon (hidden fro
129
129
A "contains" filter function is obtained from <TypeLinklinks={i18nDocs.links}type={i18nDocs.exports.useFilter} /> and is passed to <TypeLinklinks={statelyDocs.links}type={statelyDocs.exports.useComboBoxState} /> so
130
130
that the list box can be filtered based on the option text and the current input text.
131
131
132
-
The same `Popover`, `ListBox`, and `Button` components created with [useOverlay](useOverlay.html), [useListBox](useListBox.html),
132
+
The same `Popover`, `ListBox`, and `Button` components created with [usePopover](usePopover.html), [useListBox](useListBox.html),
133
133
and [useButton](useButton.html) that you may already have in your component library or application should be reused. These can be shared with other
134
134
components such as a `Select` created with [useSelect](useSelect.html) or a `Dialog` popover created with [useDialog](useDialog.html).
135
135
The code for these components is also included below in the collapsed sections.
136
136
137
-
This example does not do any advanced popover positioning or portaling to escape its visual container.
138
-
See [useOverlayTrigger](useOverlayTrigger.html) for an example of how to implement this
139
-
using <TypeLinklinks={overlaysDocs.links}type={overlaysDocs.exports.useOverlayPosition} />.
140
-
141
137
In addition, see [useListBox](useListBox.html) for examples of sections (option groups), and more complex
142
138
options. For an example of the description and error message elements, see [useTextField](useTextField.html).
0 commit comments