UNPKG

radix-vue

Version:

Vue port for Radix UI Primitives.

50 lines (49 loc) 1.96 kB
import type { Direction, ScrollBodyOption } from '../shared/types'; import type { Ref } from 'vue'; interface ConfigProviderContextValue { dir?: Ref<Direction>; scrollBody?: Ref<boolean | ScrollBodyOption>; } export declare const injectConfigProviderContext: <T extends ConfigProviderContextValue | null | undefined = ConfigProviderContextValue>(fallback?: T | undefined) => T extends null ? ConfigProviderContextValue | null : ConfigProviderContextValue, provideConfigProviderContext: (contextValue: ConfigProviderContextValue) => ConfigProviderContextValue; export interface ConfigProviderProps { /** * The global reading direction of your application. This will be inherited by all primitives. * @defaultValue 'ltr' */ dir?: Direction; /** * The global scroll body behavior of your application. This will be inherited by the related primitives. * @type boolean | ScrollBodyOption */ scrollBody?: boolean | ScrollBodyOption; } declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{ dir: { type: import("vue").PropType<Direction>; default: string; }; scrollBody: { type: import("vue").PropType<boolean | ScrollBodyOption>; default: boolean; }; }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ dir: { type: import("vue").PropType<Direction>; default: string; }; scrollBody: { type: import("vue").PropType<boolean | ScrollBodyOption>; default: boolean; }; }>>, { dir: Direction; scrollBody: boolean | ScrollBodyOption; }, {}>, { default?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };