# Collection.State

Complete renderer-independent state for Collection.

## Signatures

```ts
export type State<Value = unknown, Element extends object = globalThis.Element> = readonly Item<Value, Element>[];
```

## Why

Applications can inspect, update, and test Collection behavior without mounting or coupling the
state to a renderer.

## Ownership and lifetime

This declaration is data or schema metadata and acquires no resources.

## Example

Import with `import type { State } from "@typed/ui/Collection";` Extend the [Collection.makeState
runnable setup](https://tylors.github.io/typed-smol/reference/symbols/QHR5cGVkL3VpL0NvbGxlY3Rpb24jbWFrZVN0YXRl/). Collection state is an
immutable sequence: `const snapshot: State<string> = [{ id: "save", value: "save" }]`.
