radix-vue
Version:
Vue port for Radix UI Primitives.
59 lines (58 loc) • 2.05 kB
TypeScript
import type { Ref } from 'vue';
import type { PrimitiveProps } from '../Primitive';
import type { DataOrientation, Direction } from '../shared/types';
export interface ToolbarRootProps extends PrimitiveProps {
orientation?: DataOrientation;
dir?: Direction;
loop?: boolean;
}
export interface ToolbarRootContext {
orientation: Ref<DataOrientation>;
dir: Ref<Direction>;
}
export declare const injectToolbarRootContext: <T extends ToolbarRootContext | null | undefined = ToolbarRootContext>(fallback?: T | undefined) => T extends null ? ToolbarRootContext | null : ToolbarRootContext, provideToolbarRootContext: (contextValue: ToolbarRootContext) => ToolbarRootContext;
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
dir: {
type: import("vue").PropType<Direction>;
};
loop: {
type: import("vue").PropType<boolean>;
};
asChild: {
type: import("vue").PropType<boolean>;
};
as: {
type: import("vue").PropType<import('../Primitive').AsTag | import("vue").Component>;
};
orientation: {
type: import("vue").PropType<DataOrientation>;
default: string;
};
}, {}, 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>;
};
loop: {
type: import("vue").PropType<boolean>;
};
asChild: {
type: import("vue").PropType<boolean>;
};
as: {
type: import("vue").PropType<import('../Primitive').AsTag | import("vue").Component>;
};
orientation: {
type: import("vue").PropType<DataOrientation>;
default: string;
};
}>>, {
orientation: DataOrientation;
}, {}>, {
default?(_: {}): any;
}>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};