
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
react-conversational-text
Advanced tools
A React component that prints messages one character at a time, as if typed by a person.

npm i react-conversational-text
Import and use the ConversationalText component, passing in the list of strings you want printed, along with optional props.
import ConversationalText from "react-conversational-text";
import "./App.css";
function App() {
return (
<div>
<ConversationalText
messages={[
"This is the first message.",
"However, this is the second message.",
]}
/>
</div>
);
}
export default App;
messages (string[]): The list of strings you want to be printed.Each of the following props is optional and can be used to customize the behavior of the ConversationalText component.
delayBetweenCharactersMs (number): The delay in milliseconds between each character. Default is 40ms.delayAfterCommaMs (number): Additional delay in milliseconds after a comma is printed. Default is 500ms.delayAfterSentenceMs (number): Additional delay in milliseconds after a sentence-ending punctuation (., !, ?) is printed. Default is 500ms.delayBetweenMessageMs (number): The delay in milliseconds before starting to print the next message. Default is 1000ms.addSpaceBetweenMessages (boolean): If true, adds a space between messages. Default is true.lineBreakBetweenMessages (boolean): If true, adds a line break between messages. Default is false.onMessageComplete (function): A callback function that is called when each input message is completed. The function receives the index of the completed message as a parameter.
Example: onMessageComplete={(messageIndex) => { /* handle completion of message */ }}onAllMessagesComplete (function): A callback function that is called when all messages have been completed. This function does not receive any parameters.
Example: onAllMessagesComplete={() => { /* handle completion of all messages */ }}style (CSSProperties): Custom CSS styles to apply to the span containing the messages. This is an object that can contain any valid CSS property.To see an example react app using this package, check out this repository.
To report a problem or make a feature request, add a GitHub 'issue' here.
FAQs
Text that prints as if typed by a person
The npm package react-conversational-text receives a total of 1 weekly downloads. As such, react-conversational-text popularity was classified as not popular.
We found that react-conversational-text demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.