react-truncate-list
Version:
Truncate a list of elements with a symbol or component of your choice
14 lines (13 loc) • 474 B
TypeScript
import React from "react";
type RenderTruncator = (state: {
hiddenItemsCount: number;
}) => React.ReactNode;
export type TruncatedListProps = {
renderTruncator: RenderTruncator;
children?: React.ReactNode;
alwaysShowTruncator?: boolean;
className?: string;
style?: React.CSSProperties;
};
export declare const TruncatedList: ({ renderTruncator, alwaysShowTruncator, children, className, style, }: TruncatedListProps) => React.JSX.Element;
export {};