@grafana/ui
Version:
Grafana Components Library
20 lines (19 loc) • 523 B
TypeScript
import React from 'react';
export interface ListProps<T> {
items: T[];
renderItem: (item: T, index: number) => JSX.Element;
getItemKey?: (item: T) => string;
className?: string;
}
interface AbstractListProps<T> extends ListProps<T> {
inline?: boolean;
}
export declare class AbstractList<T> extends React.PureComponent<AbstractListProps<T>> {
constructor(props: AbstractListProps<T>);
getListStyles(): {
list: string;
item: string;
};
render(): JSX.Element;
}
export {};