UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

11 lines 708 B
import { ButtonDropdownProps } from '../interfaces'; export type TreeIndex = number[]; interface ItemsTreeApi { getItem: (index: TreeIndex) => ButtonDropdownProps.ItemOrGroup | null; getItemIndex: (item: ButtonDropdownProps.ItemOrGroup) => TreeIndex; getSequentialIndex: (index: TreeIndex, direction: -1 | 1, loop?: boolean) => TreeIndex | null; getParentIndex: (item: ButtonDropdownProps.ItemOrGroup) => TreeIndex | null; } export default function createItemsTree(items: ButtonDropdownProps.Items): ItemsTreeApi; export declare function traverseItems(items: ButtonDropdownProps.Items, act: (item: ButtonDropdownProps.ItemOrGroup, index: TreeIndex) => void, parentIndex?: TreeIndex): void; export {};