synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
30 lines • 1.32 kB
TypeScript
import { DescriptionConfig } from '../CardContainerLogic';
export declare const CARD_SHORT_DESCRIPTION_CSS = "SRC-short-description";
export declare const CARD_LONG_DESCRIPTION_CSS = "SRC-long-description";
export declare const getCutoff: (summary: string, charCountCutoff: number) => {
previewText: string;
};
export declare function LongDescription(props: {
description: string;
hasClickedShowMore: boolean;
descriptionSubTitle: string;
descriptionConfig?: DescriptionConfig;
toggleShowMore?: () => void;
charCountCutoff?: number;
}): import("react/jsx-runtime").JSX.Element;
export declare function ShortDescription(props: {
description: string;
hasClickedShowMore: boolean;
descriptionSubTitle: string;
descriptionConfig?: DescriptionConfig;
toggleShowMore: () => void;
charCountCutoff?: number;
}): import("react/jsx-runtime").JSX.Element;
export type CollapsibleDescriptionProps = {
description?: string;
descriptionConfig?: DescriptionConfig;
descriptionSubTitle: string;
charCountCutoff?: number;
};
export declare function CollapsibleDescription({ description, descriptionSubTitle, descriptionConfig, charCountCutoff, }: CollapsibleDescriptionProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=CollapsibleDescription.d.ts.map