UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

15 lines (14 loc) 671 B
import type { JsonObject } from '../../utils/json-pointer'; import type { DataContextProviderProps as ProviderProps } from '../../DataContext/Provider'; import type { FormElementProps as FormElementProps } from '../Element'; export type FormHandlerProps = FormElementProps & { /** * Will enable autoComplete for all nested Field.String fields */ autoComplete?: boolean; /** * Will decouple the form element from rendering */ decoupleForm?: boolean; }; export default function FormHandler<Data extends JsonObject>(props: ProviderProps<Data> & Omit<FormHandlerProps, keyof ProviderProps<Data>>): import("react/jsx-runtime").JSX.Element;