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
<pclass="pb-4">The Combobox component makes use of **portals**. A basic use case for a portal is to prevent overflow issues in your UI. To support portals in Qwik UI, please add the following around your layout.tsx.</p>
70
-
<CodeExampleclasses="!mb-0 !p-6 !rounded-md">
71
-
```tsx
72
-
<body>
73
-
<QwikUIProvider>
74
-
<slot />
75
-
</QwikUIProvider>
76
-
</body>
77
-
```
78
-
</CodeExample>
68
+
Qwik UI's Combobox implementation follows the [WAI-Aria Combobox specifications](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/), along with some additional API's that enhance the flexibility, types, and performance.
79
69
80
-
<pclass="pt-4">Portals are still currently in **Beta**, as a result, if you'd like to use context within these components, you must pass your context ID using the `contextIds` prop on the `ComboboxPortal` component. If you're not using context, you don't need to do this step.</p>
[Report an issue 🚨](https://github.com/qwikifiers/qwik-ui/issues)
93
74
94
-
> In Beta, we're currently supporting the **Autocomplete** configuration. We aim to support other combobox configurations according to our [roadmap](https://github.com/qwikifiers/qwik-ui/issues/405)
75
+
[Edit This Page 🗒️](<https://github.com/qwikifiers/qwik-ui/edit/main/apps/website/src/routes/docs/headless/(components)/combobox/index.mdx>)
95
76
96
-
<br/>
77
+
</div>
78
+
79
+
<br />
97
80
98
81
##### ✨ Features
99
82
@@ -107,18 +90,45 @@ import {statusByComponent} from '../../../../../_state/component-statuses';
107
90
108
91
<br/>
109
92
93
+
> In Beta, we're currently supporting the **Autocomplete** configuration. We aim to support other combobox configurations according to our [roadmap](https://github.com/qwikifiers/qwik-ui/issues/405)
110
94
111
-
Qwik UI's Combobox implementation follows the [WAI-Aria](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/) design pattern, along with some additional API's that enhance the flexibility, types, and performance.
<pclass="pb-4">The Combobox component makes use of **portals**. A basic use case for a portal is to prevent overflow issues in your UI. To support portals in Qwik UI, please add the following around your layout.tsx.</p>
[Edit This Page 🗒️](<https://github.com/qwikifiers/qwik-ui/edit/main/apps/website/src/routes/docs/headless/(components)/combobox/index.mdx>)
103
+
// wrap as a direct child to the body tag
104
+
<body>
105
+
<QwikUIProvider>
106
+
<slot />
107
+
</QwikUIProvider>
108
+
</body>
109
+
```
110
+
</CodeExample>
119
111
112
+
<divclass="pt-12 pb-4">
113
+
#### <ins>**Context Caveats**</ins>
114
+
<pclass="pt-2 pb-4">Portals are still currently in **Beta**, as a result, you may experience an issue using your own context to pass data into the portal children.</p>
115
+
<pclass="pb-4">If you do experience any context related issues, add the following **contextIds** prop to the **ComboboxPortal** component. It takes in an array of string context id's as a prop. We also have a live example below with context.</p>
116
+
<pclass="pb-4">If you are not using context inside the portal children, this will not be an issue.</p>
0 commit comments