UNPKG

its-just-ui

Version:

ITS Just UI - React 18 & React 19 UI component library. 36+ accessible, TypeScript-native components with Tailwind CSS. Zero-config Material UI alternative for SaaS dashboards and enterprise apps.

10 lines (8 loc) 628 B
import { CascadeOption, CascadeValue, CascadeLevel } from './types'; export declare const useCascade: () => import('./types').CascadeContextValue; export declare const useCascadeLevels: (options: CascadeOption[], maxLevels?: number) => CascadeLevel[]; export declare const useCascadeValue: (options: CascadeOption[]) => { findValuePath: (targetValue: string | number, opts: CascadeOption[], path?: (string | number)[]) => (string | number)[] | null; getValueFromPath: (path: (string | number)[]) => CascadeValue | null; getOptionsForLevel: (level: number, selectedPath?: (string | number)[]) => CascadeOption[]; };