# ImageEditorFrame (@salmonui/editors/image-editor)

> The ImageEditorFrame interface of @salmonui/editors/image-editor: A frame drawn over the output edges.

Canonical: https://salmonui.dev/docs/reference/editors/image-editor/ImageEditorFrame

```ts
import type { ImageEditorFrame } from '@salmonui/editors/image-editor';
```

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

## Reference

Kind: interface

```ts
interface ImageEditorFrame {
    readonly type: ImageEditorFrameType;
    readonly color?: string | undefined;
    readonly gradientColor?: string | undefined;
    readonly size?: number | undefined;
    readonly inset?: number | undefined;
    readonly radius?: number | undefined;
}
```

A frame drawn over the output edges.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: ImageEditorFrameType;` |  |  |
| `color` | `readonly color?: string \| undefined;` | optional | Default `'#ffffff'`. |
| `gradientColor` | `readonly gradientColor?: string \| undefined;` | optional | A second color: the frame fills with a linear gradient from `color` to it. |
| `size` | `readonly size?: number \| undefined;` | optional | Band or line width in output pixels. Default 5 % of the shorter side. |
| `inset` | `readonly inset?: number \| undefined;` | optional | Distance of the `line`, `inset` and `hook` strokes from the edge. Default `size`. |
| `radius` | `readonly radius?: number \| undefined;` | optional | Corner radius of the opening (`mat`, `bevel`, `inset`) or of the line. Default 0. |
