# SavedViewInput (@salmonui/data/views)

> The SavedViewInput interface of @salmonui/data/views: save() input: without id a view is created, with an existing id it is replaced (keeping createdAt).

Canonical: https://salmonui.dev/docs/reference/data/views/SavedViewInput

```ts
import type { SavedViewInput } from '@salmonui/data/views';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: interface

```ts
interface SavedViewInput<State extends DataGridState = DataGridState> {
    readonly id?: string;
    readonly name: string;
    readonly description?: string;
    readonly state: State;
}
```

`save()` input: without `id` a view is created, with an existing `id` it is replaced (keeping `createdAt`).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string;` | optional |  |
| `name` | `readonly name: string;` |  |  |
| `description` | `readonly description?: string;` | optional |  |
| `state` | `readonly state: State;` |  |  |
