API reference: @salmonui/rich-text
RichTextContentcomponent
import { RichTextContent } from '@salmonui/rich-text';function RichTextContent(props: RichTextContentProps): import("react").JSX.Element;
Read-only rendering of rich text content; root class salmon-rich-text-content.
Props: RichTextContentProps
| Name | Signature | Description |
|---|---|---|
valueoptional | value?: string; | Stored HTML (for example a RichTextEditor value). Sanitized before rendering. |
blocksoptional | blocks?: readonly Block[]; | BlockEditor blocks; rendered through |
embedHostsoptional | embedHosts?: readonly string[]; | Hostnames whose iframe embeds are kept (see |
sanitizeoptional | sanitize?: SanitizeHook; | Further sanitizer restriction (see |
classNameoptional | className?: string; | |
styleoptional | style?: CSSProperties; | |
refoptional | ref?: Ref<HTMLDivElement>; |