react-truncate-html icon indicating copy to clipboard operation
react-truncate-html copied to clipboard

Truncate multiline HTML with React

Results 11 react-truncate-html issues
Sort by recently updated
recently updated
newest added

- react: 17.0.2 - react-dom: 17.0.2 - react-truncate-html: 0.1.7 Code: ``` ... ... ``` Console out: ``` Warning: A string ref, "paragraph", has been found within a strict mode tree....

Hi , HTML along with text is not truncating see the below example ```javascript import React from "react"; import "./styles.css"; import Truncate from "react-truncate-html"; export default function App() { const...

I'm trying to use this package in my project but getting this: /react-truncate-html/index.js' implicitly has an 'any' type. Try `npm install @types/react-truncate-html` if it exists or add a new declaration...

import Truncate from 'react-truncate-html'; it will remove font-size from strong tag. could you please fix this

Like react-truncate, it would enable me to dynamically show/hide a More/Less button for the content.

enhancement

There are three instances where `this.conf` was referenced, that cause the component to break when the option `breakWord` is set to false. This PR replaces conf for props, which works...

Hi, when I try to use the breakWord property the console throws me an error as: `Uncaught (in promise) TypeError: Cannot read property 'ellipsis' of undefined` I have noticed that...

bug

Im using react-truncate-html with a slider on my page where a user can define the amount of lines. However the Truncate component seems to cache the data. As the data...

enhancement