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

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    onChange: ChangeEventHandler<HTMLInputElement> = ...
    onFocus: FocusEventHandler<HTMLInputElement> = ...

    Accessors

    Methods

    • Parameters

      • value: null | string

        Value of the radio button

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

          [Override] ID of the input element.

          • true: Use the field 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": undefined | string;
          "aria-invalid": undefined | boolean;
          checked: boolean;
          id: undefined | string;
          name: string;
          onChange: ChangeEventHandler<HTMLInputElement>;
          onFocus: FocusEventHandler<HTMLInputElement>;
          type: "radio";
          value: string;
      }