UNPKG

@rws-aoa/react-library

Version:

RWS AOA Design System

27 lines 791 B
import { TextFieldProps } from '@mui/material'; declare module '@mui/material' { interface BaseTextFieldProps { 'data-qa'?: string; } } export interface AoaInputProps extends Omit<TextFieldProps, 'variant'> { /** * Data-qa tag for E2E test purposes */ readonly 'data-qa'?: string; /** * Whether this input field is optional */ readonly optional?: boolean; } /** * Constructs an input field using pre-defined Rijks styling * * @param props - Props to pass to the input field * @example * ```jsx * <AoaInput label="User name" value={value} onChange={() => handleOnChange} /> * ``` */ export declare function AoaInput({ optional, ...props }: AoaInputProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Input.d.ts.map