Skip to content

Render the content of a message according to its type

Notifications You must be signed in to change notification settings

patchkit/patchkit-msg-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MsgContent

Render the content of a message according to its type

import * as MsgContent from 'patchkit-msg-content'

<MsgContent.Block msg={msg} />
<MsgContent.Inline msg={msg} />

// you can force "raw" data rendering:
<MsgContent.Block msg={msg} forceRaw />
<MsgContent.Inline msg={msg} forceRaw />

About

Render the content of a message according to its type

Resources

Stars

Watchers

Forks

Packages

No packages published