UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

32 lines (31 loc) 1.11 kB
export interface ListingTableItemProps { row?: { /** Lable of row. Required */ label: string; /** Number of visible items. Defaults to 2. */ visibleItems?: number; /** More Label for when items are hidden. Defaults to "More" */ moreLabel?: string; /** Less Label for when items need hiding. Defaults to "Less" */ lessLabel?: string; /** Items in the table. */ items?: string | object[]; }; } export interface ListingTableProps { /** Rows of data. Each containing specific parameters */ rows?: { /** Lable of row. Required */ label: string; /** Number of visible items. Defaults to 2. */ visibleItems?: number; /** More Label for when items are hidden. Defaults to "More" */ moreLabel?: string; /** Less Label for when items need hiding. Defaults to "Less" */ lessLabel?: string; /** Items in the table. */ items?: string | object[]; }[]; } declare const ListingTable: (props: ListingTableProps) => any; export default ListingTable;