# Composite.StateSchema

Effect Schema used by makeState to encode, decode, and hydrate Composite state.

## Signatures

```ts
export declare const StateSchema: Schema.Struct<{
    readonly activeId: Schema.NullOr<Schema.String>;
    readonly orientation: Schema.Literals<readonly [
        "horizontal",
        "vertical",
        "both"
    ]>;
    readonly loop: Schema.Boolean;
    readonly rtl: Schema.Boolean;
    readonly virtualFocus: Schema.Boolean;
}>;
```

## Why

A public schema makes hydration and serialized state use the same runtime validation as direct
construction.

## Ownership and lifetime

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

## Examples

```ts
import * as Schema from "effect/Schema";
import * as Composite from "@typed/ui/Composite";

const decodeState = Schema.decodeUnknownEffect(Composite.StateSchema);
```
