UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

13 lines (12 loc) 461 B
import type { CascaderOption } from './Cascader'; export interface CascaderFlatPath { /** Values from root to node */ path: string[]; /** Option chain from root to node */ options: CascaderOption[]; /** `true` if the node has no children */ leaf: boolean; /** `true` if the node or any of its ancestors is disabled */ disabled: boolean; } export declare function flattenCascaderPaths(data: CascaderOption[]): CascaderFlatPath[];