mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
476 B
TypeScript
19 lines
476 B
TypeScript
import * as React from 'react';
|
|
import TextTruncate from 'react-text-truncate';
|
|
|
|
const TruncatedText = () => (
|
|
<TextTruncate
|
|
text="My Text"
|
|
line={2}
|
|
containerClassName="my-container"
|
|
element="span"
|
|
onCalculated={() => {}}
|
|
onTruncated={() => {}}
|
|
onToggled={(truncate: boolean) => {}}
|
|
textElement={<div />}
|
|
textTruncateChild={<div />}
|
|
truncateText="..."
|
|
maxCalculateTimes={5}
|
|
/>
|
|
);
|