UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

34 lines (33 loc) 1.75 kB
import type { ValueProps } from '../../types'; import type { ValueProviderProps } from './ValueProvider'; declare function useValueProvider(props?: Omit<ValueProviderProps, 'children'>): { extend: <T extends ValueProps>(valueProps: T) => T; inheritedProps: { value?: unknown; label?: import("react").ReactNode; path?: import("../../types").Path; space?: import("../../../../shared/types").SpaceTypeAll | import("../../../../shared/types").SpaceTypeMedia; top?: import("../../../../shared/types").SpaceType; right?: import("../../../../shared/types").SpaceType; bottom?: import("../../../../shared/types").SpaceType; left?: import("../../../../shared/types").SpaceType; innerSpace?: import("../../../../shared/types").SpaceTypeAll | import("../../../../shared/types").SpaceTypeMedia; maxWidth?: "small" | "medium" | "large" | "auto"; inline?: boolean; help?: import("../../../../components/help-button/HelpButtonInline").HelpProps; defaultValue?: unknown; className?: string; placeholder?: import("react").ReactNode; labelSrOnly?: boolean; transformIn?: (external: unknown | unknown) => unknown | unknown; toInput?: (external: unknown | unknown) => unknown | unknown; fromExternal?: (external: unknown) => unknown; itemPath?: import("../../types").Path; inheritVisibility?: boolean; inheritLabel?: boolean; showEmpty?: boolean; transformLabel?: (label: import("react").ReactNode, convertJsxToString: (label: import("react").ReactNode) => string) => import("react").ReactNode; }; inheritedContext: ValueProps; }; export default useValueProvider;