UNPKG

react-truncate-list

Version:

Truncate a list of elements with a symbol or component of your choice

18 lines (17 loc) 579 B
import React from "react"; type RenderTruncatorFn = (state: { hiddenItemsCount: number; }) => React.ReactNode; type OnResizeFn = (bag: { truncate: () => void; }) => void; export type TruncatedListProps = { renderTruncator: RenderTruncatorFn; alwaysShowTruncator?: boolean; onResize?: OnResizeFn; className?: string; style?: React.CSSProperties; children?: React.ReactNode; }; export declare const TruncatedList: ({ renderTruncator, alwaysShowTruncator, onResize, className, style, children, }: TruncatedListProps) => React.JSX.Element; export {};