@uiw/react-list
Version:
List component
22 lines (21 loc) • 663 B
TypeScript
import React from 'react';
import { IProps, HTMLDivProps } from '@uiw/utils';
import { ListItem } from './Item';
import './style/index.less';
export * from './Item';
export interface ListProps<T> extends IProps, HTMLDivProps {
bordered?: boolean;
striped?: boolean;
noHover?: boolean;
active?: boolean;
header?: React.ReactNode;
footer?: React.ReactNode;
size?: 'small' | 'default' | 'large';
renderItem?: (item: any, idx: number) => React.ReactNode;
dataSource?: T[];
}
type ListComponent = React.FC<React.PropsWithRef<ListProps<any>>> & {
Item: typeof ListItem;
};
declare const List: ListComponent;
export default List;