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    
Size: Mime:
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

  // where we storing the component children
  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
}