mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
416 B
TypeScript
21 lines
416 B
TypeScript
import * as React from 'react';
|
|
import Dotdotdot from 'react-dotdotdot';
|
|
import * as ReactDOM from "react-dom";
|
|
|
|
ReactDOM.render(
|
|
<Dotdotdot
|
|
clamp={3}
|
|
useNativeClamp={false}
|
|
splitOnChars={[',']}
|
|
animate={false}
|
|
truncationChar={"…"}
|
|
tagName={"div"}
|
|
>
|
|
<p>
|
|
Long, long <br />
|
|
content,<br />
|
|
3 lines <br />
|
|
will be shown.
|
|
</p>
|
|
</Dotdotdot>, document.body);
|