UNPKG

@arteneo/forge

Version:
13 lines (12 loc) 750 B
import React from "react"; import { FormikValues } from "formik"; import { TextFieldProps } from "@mui/material"; import FieldPlaceholderInterface from "../../../components/Form/definitions/FieldPlaceholderInterface"; interface TextSpecificProps { onChange?: (path: string, setFieldValue: (field: string, value: any, shouldValidate?: boolean) => void, event: React.ChangeEvent<HTMLInputElement>, onChange: () => void, values: FormikValues, name: string) => void; fieldProps?: TextFieldProps; } type TextProps = TextSpecificProps & FieldPlaceholderInterface; declare const Text: ({ onChange, fieldProps, validate: fieldValidate, ...field }: TextProps) => React.JSX.Element | null; export default Text; export { TextProps, TextSpecificProps };