# RichTextContentProps (@salmonui/rich-text)

> The RichTextContentProps interface of @salmonui/rich-text.

Canonical: https://salmonui.dev/docs/reference/rich-text/RichTextContentProps

```ts
import type { RichTextContentProps } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
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>;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `value?: string;` | optional | Stored HTML (for example a RichTextEditor value). Sanitized before rendering. |
| `blocks` | `blocks?: readonly Block[];` | optional | BlockEditor blocks; rendered through `blocksToHtml` when `value` is not given. |
| `embedHosts` | `embedHosts?: readonly string[];` | optional | Hostnames whose iframe embeds are kept (see `SanitizeHtmlOptions.embedHosts`). |
| `sanitize` | `sanitize?: SanitizeHook;` | optional | Further sanitizer restriction (see `SanitizeHook`); keep it stable (module scope or memoized). |
| `className` | `className?: string;` | optional |  |
| `style` | `style?: CSSProperties;` | optional |  |
| `ref` | `ref?: Ref<HTMLDivElement>;` | optional |  |
