goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
36 lines • 1.41 kB
TypeScript
import { default as React } from 'react';
import { FieldStyleOverrides } from '../Shell';
export interface USDFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'style' | 'type' | 'inputMode'> {
initialValue?: string;
/**
* Canonical value-shape onChange. Receives the formatted dollar
* amount as a string (so consumers can preserve trailing decimals).
*/
onChange?: (value: string) => void;
label?: string;
min?: number;
max?: number;
precision?: number;
enableIncrement?: boolean;
incrementStep?: number;
initialDelay?: number;
repeatInterval?: number;
value?: string;
placeholder?: string;
id?: string;
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
helperText?: string;
/** Error message rendered below the input; sets aria-invalid. */
error?: string | boolean;
/** Stable test selector — emitted as `data-field` on the wrapper. */
dataField?: string;
/** Stable test selector — emitted as `data-field-name` on the wrapper. */
dataFieldName?: string;
/** Forwarded to the input as `name` for native form submission. */
name?: string;
styles?: FieldStyleOverrides;
}
declare const USDField: React.FC<USDFieldProps>;
export default USDField;
//# sourceMappingURL=index.d.ts.map