# Menubar.StateSchema

Effect Schema used by makeState to encode, decode, and hydrate Menubar 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;
}>;
```



## Examples

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

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