# ViewOptions

Svelte mount, hydration and SSR options for one island.

## Signatures

```ts
export interface ViewOptions {
    readonly id?: string;
    readonly stopPropagation?: RootEventOptions;
    readonly context?: Map<any, any>;
    readonly idPrefix?: string;
    readonly intro?: boolean;
    readonly recover?: boolean;
    readonly transformError?: (error: unknown) => unknown;
    readonly onHead?: (head: string) => void;
    readonly outro?: boolean;
    readonly csp?: {
        readonly nonce?: string;
        readonly hash?: boolean;
    };
}
```

## Property: id

Optional host identity override. Generated per render and restored during hydration by default.

## Property: onHead

Receives Svelte's native head output when this island is server-rendered.

## Property: stopPropagation

Per-event bubbling policy at the automatic host. Inherits CurrentRootEvents when omitted.
