# RichTextImageInput (@salmonui/rich-text)

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

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

```ts
import type { RichTextImageInput } 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 RichTextImageInput {
    readonly src: string;
    readonly alt?: string | undefined;
    readonly title?: string | undefined;
    readonly width?: number | null | undefined;
    readonly height?: number | null | undefined;
    readonly caption?: string | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `src` | `readonly src: string;` |  |  |
| `alt` | `readonly alt?: string \| undefined;` | optional |  |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `width` | `readonly width?: number \| null \| undefined;` | optional |  |
| `height` | `readonly height?: number \| null \| undefined;` | optional |  |
| `caption` | `readonly caption?: string \| undefined;` | optional | A caption wraps the image in `<figure>` with `<figcaption>`. |
