UNPKG

@vtaits/react-form-schema-ui-vkui-v5

Version:

VKUI fields for @vtaits/form-schema

20 lines (15 loc) 716 B
import { BaseUIContextValue } from '@vtaits/react-form-schema-base-ui'; import { PropsWithChildren, ReactElement } from 'react'; import { CardProps } from '@vkontakte/vkui'; type IGetContextValusParams = { cardMode?: CardProps["mode"]; }; type IVKUIProviderProps = PropsWithChildren<IGetContextValusParams & { ui?: Partial<BaseUIContextValue>; }>; declare function VKUIProvider({ cardMode, children, ui, }: IVKUIProviderProps): ReactElement; type IVKUIShowProviderProps = PropsWithChildren<IGetContextValusParams & { ui?: Partial<BaseUIContextValue>; }>; declare function VKUIShowProvider({ cardMode, children, ui, }: IVKUIShowProviderProps): ReactElement; export { VKUIProvider, VKUIShowProvider };