UNPKG

@zag-js/listbox

Version:

Core logic for the listbox widget implemented as a state machine

13 lines (10 loc) 478 B
import { CollectionOptions, ListCollection, CollectionItem, GridCollectionOptions, GridCollection } from '@zag-js/collection'; declare const collection: { <T extends unknown>(options: CollectionOptions<T>): ListCollection<T>; empty(): ListCollection<CollectionItem>; }; declare const gridCollection: { <T extends unknown>(options: GridCollectionOptions<T>): GridCollection<T>; empty(): GridCollection<CollectionItem>; }; export { collection, gridCollection };