@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
27 lines (26 loc) • 1.05 kB
TypeScript
import React from 'react';
import BaseComponent, { BaseProps } from '../_base/baseComponent';
import propTypes from 'prop-types';
import ScrollItem from './scrollItem';
import '@douyinfe/semi-foundation/lib/cjs/scrollList/scrollList.css';
export type { ScrollItemProps } from './scrollItem';
export interface ScrollListProps extends BaseProps {
header?: React.ReactNode;
footer?: React.ReactNode;
children?: React.ReactNode;
bodyHeight?: number | string;
prefixCls?: string;
}
declare class ScrollList extends BaseComponent<ScrollListProps, {}> {
static Item: typeof ScrollItem;
static propTypes: {
className: propTypes.Requireable<string>;
header: propTypes.Requireable<propTypes.ReactNodeLike>;
footer: propTypes.Requireable<propTypes.ReactNodeLike>;
children: propTypes.Requireable<propTypes.ReactNodeLike>;
bodyHeight: propTypes.Requireable<NonNullable<string | number>>;
};
constructor(props: ScrollListProps);
render(): React.JSX.Element;
}
export default ScrollList;