@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
33 lines (32 loc) • 1.2 kB
TypeScript
import React from 'react';
import { Props as DataContextProps } from '../../DataContext/Provider';
import { FormStatusProps } from '../../../../components/FormStatus';
import { ContextProps } from '../../../../shared/Context';
import { FieldProps, Path } from '../../types';
import { JsonObject } from '../../utils';
export type FieldProviderProps = FieldProps & {
children: React.ReactNode;
/**
* Locale to use for all nested Eufemia components
*/
locale?: DataContextProps<JsonObject>['locale'];
/**
* Provide your own translations. Use the same format as defined in the translation files
*/
translations?: DataContextProps<JsonObject>['translations'];
/** For internal use only */
overwriteProps?: {
[key: Path]: FieldProps;
};
/** For internal use only */
formElement?: ContextProps['formElement'];
/** For internal use only */
FormStatus?: {
globalStatus: FormStatusProps;
};
};
declare function FieldProviderProvider(props: FieldProviderProps): import("react/jsx-runtime").JSX.Element;
declare namespace FieldProviderProvider {
var _supportsSpacingProps: string;
}
export default FieldProviderProvider;