@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
33 lines • 1.16 kB
TypeScript
import { BaseChangeDetail } from '../../../input/interfaces';
import { InternalInputProps } from '../../../input/internal';
import { BaseComponentProps } from '../../base-component';
import { FormFieldValidationControlProps } from '../../context/form-field-context';
import { MaskArgs } from './utils/mask-format';
export interface MaskedInputProps extends InternalInputProps, FormFieldValidationControlProps, BaseComponentProps {
/**
* Mask config definition to describe segments and separators
*/
mask: MaskArgs;
/**
* Autofixes values provided to the Mask based on the minValue/maxValue specified in the mask.
*/
autofix?: boolean;
/**
* Disable value autocompletion when input is blurred
*/
disableAutocompleteOnBlur?: boolean;
/**
* When true, the provided value is shown as is, ignoring masking.
* This is useful when rendering an alternative value when the input is not focused or disabled.
*/
showUnmaskedValue?: boolean;
}
export declare namespace MaskedInputProps {
type ChangeDetail = BaseChangeDetail;
interface Ref {
/**
* Sets input focus onto the UI control.
*/
focus(): void;
}
}