Repository URL to install this package:
|
Version:
2.8.4 ▾
|
import { ReactNode } from 'react';
/**
* TYPES
*/
export declare type ListValueProps = Array<ItemProps>;
/**
* FUNCTIONS
*/
export interface ItemRenderProp {
(item: ItemProps, props?: ListProps): ReactNode;
}
export interface ListRenderProp {
(props: ListProps): ReactNode;
}
/**
* ITEM PROPS
*/
export interface ItemProps {
label: string;
value?: string;
}
/**
* LIST PROPS
*/
export interface ListProps {
className?: '';
list?: ListValueProps;
children?: ReactNode;
/**
* To display in horizontal view
*/
isHorizontalView?: boolean;
/**
* Render Props
*/
renderItem?: ItemRenderProp;
renderList?: ListRenderProp;
renderWrapper?: ListRenderProp;
}