# RichTextLinkInput (@salmonui/rich-text)

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

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

```ts
import type { RichTextLinkInput } 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 RichTextLinkInput {
    readonly href: string;
    readonly text?: string | undefined;
    readonly title?: string | undefined;
    readonly target?: '_blank' | null | undefined;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `href` | `readonly href: string;` |  |  |
| `text` | `readonly text?: string \| undefined;` | optional | Link text inserted when the selection is empty (default the URL). |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `target` | `readonly target?: '_blank' \| null \| undefined;` | optional | `'_blank'` opens in a new window (`rel="noopener noreferrer"` is added). |
