variable / @typed/ui/index

RadioGroup.makeCollection

Creates a scoped Collection for RadioGroup items.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
State construction
Since
1.0.0
Member of
RadioGroup

Import

import { RadioGroup } from "@typed/ui/index";

Access RadioGroup.makeCollection through the imported RadioGroup export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

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

Examples

import * as Effect from "effect/Effect";
import * as RadioGroup from "@typed/ui/RadioGroup";

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

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source