Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / components / molecules / List / typings.d.ts
Size: Mime:
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;
}