Repository URL to install this package:
|
Version:
2.7.3 ▾
|
import { ReactNode } from 'react';
import { TextPlaceholderProps } from '../TextPlaceholder/typings';
export interface ItemProps {
label?: string;
value?: string;
}
/**
* FUNCTIONS
*/
export interface ItemRenderProp {
(item?: ItemProps, props?: ListProps): ReactNode;
}
export interface ListRenderProp {
(props: ListProps): ReactNode;
}
export interface ListProps extends TextPlaceholderProps {
className?: string;
children?: ReactNode;
/**
* To display in horizontal view
*/
isHorizontalView?: boolean;
/**
* It is the object to be rendered as list
*/
list?: Array<ItemProps>;
/**
* Render Props
*/
renderItem?: ItemRenderProp;
renderList?: ListRenderProp;
renderWrapper?: ListRenderProp;
}