Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we use react markdown in the displayed messages #195

Open
ManishitSingh opened this issue Jul 28, 2024 · 2 comments
Open

How can we use react markdown in the displayed messages #195

ManishitSingh opened this issue Jul 28, 2024 · 2 comments

Comments

@ManishitSingh
Copy link

No description provided.

@admin-suketa
Copy link

Use Custome Messages as mentioned in this link: https://fredrikoseberg.github.io/react-chatbot-kit-docs/docs/advanced/custom-messages

@zmoshansky
Copy link

From a next project, using tailwindCSS

import Markdown from 'react-markdown'

export default function BotChatMessage({ message }: { message: string }) {
    return <div className="grid flex-col gap-4 rounded-md">
        <Markdown>{message}</Markdown>
        <hr />
    </div>
}

Config

customComponents: {
            botChatMessage: BotChatMessage,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants