radix-vue
Version:
Vue port for Radix UI Primitives.
13 lines (12 loc) • 650 B
TypeScript
import type { Middleware, Placement } from '@floating-ui/vue';
declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
export type Side = (typeof SIDE_OPTIONS)[number];
export type Align = (typeof ALIGN_OPTIONS)[number];
export declare function isNotNull<T>(value: T | null): value is T;
export declare function transformOrigin(options: {
arrowWidth: number;
arrowHeight: number;
}): Middleware;
export declare function getSideAndAlignFromPlacement(placement: Placement): readonly ["right" | "left" | "bottom" | "top", "center" | "end" | "start"];
export {};