• React JSX!IntrinsicElements.input component integrated with !AutoNumeric and permits interaction with a React state.

    Parameters

    • options: {
          autoNumericOptions?: Readonly<CallbackOptions>;
          inputProps?: Readonly<InputProps>;
          valueState?: {
              state: string;
              stateSetter: Dispatch<SetStateAction<string>>;
          };
      }

      Options of the component.

      • OptionalautoNumericOptions?: Readonly<CallbackOptions>

        Options passed to !AutoNumeric. Same as AutoNumeric!Options.

      • OptionalinputProps?: Readonly<InputProps>

        Options passed to JSX!IntrinsicElements.input. Same as JSX!IntrinsicElements.input.props.

      • OptionalvalueState?: { state: string; stateSetter: Dispatch<SetStateAction<string>> }

        The state and state setter from the parent component to be passed into this component.

        • state: string

          The state from the parent component to be passed in.

        • stateSetter: Dispatch<SetStateAction<string>>

          The callback function that sets options.valueState.state.

    Returns Element

    The React component.