UNPKG

radix-vue

Version:

Vue port for Radix UI Primitives.

61 lines (60 loc) 2.33 kB
import type { Ref } from 'vue'; import type { PrimitiveProps } from '../Primitive'; export interface ScrollAreaScrollbarProps extends PrimitiveProps { orientation?: 'vertical' | 'horizontal'; /** * Used to force mounting when more control is needed. Useful when * controlling animation with Vue animation libraries. */ forceMount?: boolean; } export interface ScrollAreaScollbarContext { as: Ref<PrimitiveProps['as']>; orientation: Ref<'vertical' | 'horizontal'>; forceMount?: Ref<boolean>; isHorizontal: Ref<boolean>; asChild: Ref<boolean>; } export declare const injectScrollAreaScrollbarContext: <T extends ScrollAreaScollbarContext | null | undefined = ScrollAreaScollbarContext>(fallback?: T | undefined) => T extends null ? ScrollAreaScollbarContext | null : ScrollAreaScollbarContext, provideScrollAreaScrollbarContext: (contextValue: ScrollAreaScollbarContext) => ScrollAreaScollbarContext; declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{ asChild: { type: import("vue").PropType<boolean>; }; as: { type: import("vue").PropType<import('../Primitive').AsTag | import("vue").Component>; default: string; }; orientation: { type: import("vue").PropType<"vertical" | "horizontal">; default: string; }; forceMount: { type: import("vue").PropType<boolean>; }; }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ asChild: { type: import("vue").PropType<boolean>; }; as: { type: import("vue").PropType<import('../Primitive').AsTag | import("vue").Component>; default: string; }; orientation: { type: import("vue").PropType<"vertical" | "horizontal">; default: string; }; forceMount: { type: import("vue").PropType<boolean>; }; }>>, { as: import('../Primitive').AsTag | import("vue").Component; orientation: "vertical" | "horizontal"; }, {}>, { default?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };