MarkdownProvider

Provide custom markdown rendering for thread messages.
app.tsx
import { MarkdownProvider, Thread } from '@superinterface/react' const components = { h1: (props) => <h1 className="special-h1">{props.children}</h1>, } export const App = () => ( <MarkdownProvider components={components}> <Thread /> </MarkdownProvider> )

Props

PropTypeRequiredDescription
componentsRecord<string, React.ComponentType>YesMarkdown element overrides
childrenReact.ReactNodeYesWrapped components