# makeCollection

Creates a scoped Collection for Listbox items.

## Signatures

```ts
export declare const makeCollection: (initial?: Collection.State<string, Element>) => Effect.Effect<RefSubject.RefSubject<Collection.State<string, Element>, never, never>, never, Scope.Scope>;
```



## Examples

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

const program = Effect.scoped(
  Effect.gen(function* () {
    const collection = yield* Listbox.makeCollection();
    return yield* collection;
  }),
);
```
