MCPcopy Create free account
hub / github.com/adobe/react-spectrum / StandaloneListBox

Function StandaloneListBox

packages/react-aria-components/src/ListBox.tsx:225–230  ·  view source on GitHub ↗
({props, listBoxRef, collection})

Source from the content-addressed store, hash-verified

223});
224
225function StandaloneListBox({props, listBoxRef, collection}) {
226 props = {...props, collection, children: null, items: null};
227 let {layoutDelegate} = useContext(CollectionRendererContext);
228 let state = useListState({...props, layoutDelegate});
229 return <ListBoxInner state={state} props={props} listBoxRef={listBoxRef} />;
230}
231
232interface ListBoxInnerProps<T> {
233 state: ListState<T>;

Callers

nothing calls this directly

Calls 1

useListStateFunction · 0.90

Tested by

no test coverage detected