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
@@ -93,48 +98,64 @@ import { APITable } from '../../../../../components/api-table/api-table';
93
98
<KeyboardInteractionTablekeyDescriptors={
94
99
[
95
100
{
96
-
keyTitle: 'Space',
97
-
description: 'Expand or collapse the `AccordionItem`.',
101
+
keyTitle: 'Tab',
102
+
description: 'Moves focus to the next focusable element or option.',
98
103
},
99
104
{
100
-
keyTitle: 'Enter',
101
-
description: 'Expand or collapse the `AccordionItem`.',
105
+
keyTitle: 'Shift + Tab',
106
+
description: 'Moves focus to the previous focusable element or option.',
102
107
},
103
108
{
104
-
keyTitle: 'Tab',
105
-
description: 'Moves focus to the next focusable element.',
109
+
keyTitle: 'DownArrow',
110
+
description: "Opens the listbox and moves focus to the first option. When focus is on an option, moves focus to the next option. If there isn't one, it will go back to the first option.",
106
111
},
107
112
{
108
-
keyTitle: 'Shift + Tab',
109
-
description: 'Moves focus to the previous focusable element.',
113
+
keyTitle: 'UpArrow',
114
+
description: "When focus is on an option, moves focus to the previous option. If there isn't one, it will go back to the last option.",
115
+
},
116
+
{
117
+
keyTitle: 'Enter / Space',
118
+
description: `Selects the option when focused. The listbox will close and the selected option becomes the input's value.`,
119
+
},
120
+
{
121
+
keyTitle: 'Escape',
122
+
description: 'Closes the listbox.',
110
123
},
111
124
{
112
125
keyTitle: 'Home',
113
-
description: 'When on `AccordionItem`, Moves focus to the first `AccordionItem`.',
126
+
description: 'When the input is focused, the cursor moves to the start of the input value. When focused on any listbox option, focus is moved to the first option.',
114
127
},
115
128
{
116
129
keyTitle: 'End',
117
-
description: 'When on `AccordionItem`, Moves focus to the last `AccordionItem`.',
130
+
description: 'When the input is focused, the cursor moves to the end of the input value. When focused on any listbox option, focus is moved to the last option.',
131
+
},
132
+
{
133
+
keyTitle: 'Delete',
134
+
description: 'When text is selected in the input, deletes the selected text.',
118
135
},
119
136
120
137
]
121
138
}/>
122
139
140
+
Adheres to the [Combobox](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/) WAI-ARIA design pattern. See the W3C Editable Combobox With List Autocomplete Example for more information.
141
+
123
142
## API
124
143
125
-
### AccordionItem
144
+
By default, the API holds available attributes of both native DOM elements and custom Qwik elements. This is thanks to **QwikIntrinsicElements**. Here are some of the notable API's for this component.
145
+
146
+
### AutocompleteRoot
126
147
127
148
<APITable
128
149
propDescriptors={[
129
150
{
130
151
name: 'class',
131
152
type: 'string',
132
-
description: 'CSS classes to apply to the accordion container.',
153
+
description: 'CSS classes to apply to the autocomplete container.',
133
154
},
134
155
{
135
156
name: 'style',
136
157
type: 'string',
137
-
description: 'CSS styles to apply to the accordion container.',
158
+
description: 'inline CSS styles to apply to the autocomplete container.',
0 commit comments