UNPKG

react-box-overflow

Version:

Headless UI for automatically collapsing boxes when overflow in React.

17 lines (16 loc) 767 B
/** * @author shunzi <tobyzsj@gmail.com> * @date 2024-03-24 21:47:13 */ import type { FunctionComponent } from 'react'; import React from 'react'; import type { DataType } from './types.js'; import type { BoxOverflowItemProps, BoxOverflowProps, BoxOverflowRestProps, CommonChildProps } from './interface.js'; export declare function BoxOverflow<K extends keyof any = 'key', D extends DataType<K> = DataType<K>>(props: BoxOverflowProps<K, D>): React.JSX.Element; export declare namespace BoxOverflow { var displayName: string; var Rest: FunctionComponent<BoxOverflowRestProps>; var Item: FunctionComponent<BoxOverflowItemProps>; var Suffix: FunctionComponent<CommonChildProps>; var Prefix: FunctionComponent<CommonChildProps>; }