# makeState

Creates hydrated Combobox state. value defaults to an empty string, open to false, activeId to
null, loop to true, and virtual focus is enabled.

## Signatures

```ts
export declare function makeState(initial: InitialState): Effect.Effect<RefSubject.HydratedRefSubject<{
    readonly id: string;
    readonly value: string;
    readonly open: boolean;
    readonly activeId: string | null;
    readonly orientation: "vertical";
    readonly loop: boolean;
    readonly rtl: boolean;
    readonly virtualFocus: boolean;
}, Schema.SchemaError, never, never>, never, Scope.Scope>;
```



## Examples

```ts
import * as Effect from "effect/Effect";
import * as Combobox from "@typed/ui/Combobox";

const program = Effect.scoped(
  Effect.gen(function* () {
    const state = yield* Combobox.makeState({ id: "city" });
    const collection = yield* Combobox.makeCollection();
    return { state: yield* state, collection: yield* collection };
  }),
);
```
