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