Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 311 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 311 Bytes

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 />