mobx-sentinel API doc
    Preparing search index...

    Binding for radio button input elements

    Key features:

    • Handles grouped radio buttons
    • Supports optional (nullable) values
    • Manages error states and ARIA attributes

    Implements

    • FormBinding
    Index
    onChange: ChangeEventHandler<HTMLInputElement, HTMLInputElement> = ...
    onFocus: FocusEventHandler<HTMLInputElement> = ...
    • get value(): string | number | readonly string[]

      Returns string | number | readonly string[]

    • Parameters

      • value: string | null

        Value of the radio button

      • Optionalopt: { id?: string | boolean; name?: string }
        • Optionalid?: string | boolean

          [Override] ID of the input element.

          • true: Use the field's stable ID as the ID.
          • false: No ID.
          • string: Use the given string as the ID.
        • Optionalname?: string

          [Override] Name attribute of the input element

      Returns {
          "aria-errormessage": string | undefined;
          "aria-invalid": boolean | undefined;
          checked: boolean;
          id: string | undefined;
          name: string;
          onChange: ChangeEventHandler<HTMLInputElement, HTMLInputElement>;
          onFocus: FocusEventHandler<HTMLInputElement>;
          type: "radio";
          value: string;
      }