Options of the component.
Optional
autoOptions passed to !AutoNumeric. Same as AutoNumeric!Options.
The element of the component, such as "input"
.
Optional
props?: Readonly<undefined | null | Attributes>Options passed to the underlying element options.element
.
The name of the attribute that refers the underlying DOM element. This is
typically "ref"
.
Optional
state?: Readonly<NonNullable<null | string | number>>The React state that controls and is controlled by !AutoNumeric. If absent, this component will not interact with its parent via React states.
The base React component integrated with !AutoNumeric.
This component is used as a base to construct higher-level React component that integrates with AutoNumeric. See AutoNumericInput for a live example. For some elements, you would also need to set the
contenteditable
attribute to true.