API reference: @salmonui/rich-text
RichTextContentPropsinterface
import type { RichTextContentProps } from '@salmonui/rich-text';interface RichTextContentProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dangerouslySetInnerHTML'> {
value?: string;
blocks?: readonly Block[];
embedHosts?: readonly string[];
sanitize?: SanitizeHook;
className?: string;
style?: CSSProperties;
ref?: Ref<HTMLDivElement>;
}
| 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>; |