UNPKG

compote-ui

Version:

An opinionated UI component library for Svelte, built on top of [Ark UI](https://ark-ui.com) with additional components and features not available in the core Ark UI library.

11 lines (10 loc) 362 B
import type { UseTreeViewProps } from '@ark-ui/svelte/tree-view'; import type { TreeItem } from '../../utils/collections'; export interface TreeViewProps<T extends TreeItem> extends Omit<UseTreeViewProps<T>, 'collection'> { items?: T[]; label?: string; onContextMenu?: (details: { nodeId: string; event: MouseEvent; }) => void; }