@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
8 lines (5 loc) • 377 B
JavaScript
import { ListCollection, filePathToTree, TreeCollection } from '@zag-js/collection';
const createListCollection = (options) => new ListCollection(options);
const createTreeCollection = (options) => new TreeCollection(options);
const createFileTreeCollection = (paths) => filePathToTree(paths);
export { createFileTreeCollection, createListCollection, createTreeCollection };