@ark-ui/solid
Version:
A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.
10 lines (6 loc) • 659 B
TypeScript
import { CollectionItem, CollectionOptions, ListCollection, TreeCollection, FilePathTreeNode, TreeNode, TreeCollectionOptions } from '@zag-js/collection';
export { CollectionItem, ListCollection, TreeCollection, TreeNode } from '@zag-js/collection';
declare const createListCollection: <T extends CollectionItem>(options: CollectionOptions<T>) => ListCollection<T>;
declare const createTreeCollection: <T extends TreeNode>(options: TreeCollectionOptions<T>) => TreeCollection<T>;
declare const createFileTreeCollection: (paths: string[]) => TreeCollection<FilePathTreeNode>;
export { createFileTreeCollection, createListCollection, createTreeCollection };