@ant-design/x
Version:
Craft AI-driven interfaces effortlessly
7 lines (6 loc) • 327 B
TypeScript
import React from 'react';
import type { SuggestionItem } from '.';
/**
* Since Cascader not support ref active, we use `value` to mock the active item.
*/
export default function useActive(items: SuggestionItem[], open: boolean, rtl: boolean, onCancel: () => void): readonly [string[], React.KeyboardEventHandler<Element>];