variable / @typed/ui/RadioGroup

StateSchema

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

Learn this UI primitive →

Package version
1.0.0-beta.7
Category
Hydration schemas
Since
1.0.0

Import

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

Signatures

export declare const StateSchema: Schema.Struct<{
    readonly value: Schema.String;
    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

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

const decodeState = Schema.decodeUnknownEffect(RadioGroup.StateSchema);

Other public imports

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

Source