@automattic/wpcom-checkout
Version:
Functions and components used by WordPress.com checkout.
22 lines • 792 B
TypeScript
import type { ReactNode } from 'react';
export default function Field({ type, id, className, inputClassName, isError, onChange, label, value, icon, iconAction, isIconVisible, placeholder, tabIndex, description, errorMessage, autoComplete, disabled, prefix, }: {
type?: string;
id: string;
className?: string;
inputClassName?: string;
isError?: boolean;
onChange?: (value: string) => void;
label?: string;
value: string;
icon?: ReactNode;
iconAction?: () => void;
isIconVisible?: boolean;
placeholder?: string;
tabIndex?: number;
description?: string;
errorMessage?: ReactNode;
autoComplete?: string;
disabled?: boolean;
prefix?: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=field.d.ts.map