# StateSchema

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

## Signatures

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



## Examples

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

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