vuetify
Version:
Vue Material Component Framework
17 lines (16 loc) • 818 B
TypeScript
import type { CSSProperties, PropType } from 'vue';
import type { Anchor } from "../util/index.js";
export interface LocationProps {
location: Anchor | null | undefined;
}
export declare const makeLocationProps: <Defaults extends {
location?: unknown;
} = {}>(defaults?: Defaults | undefined) => {
location: unknown extends Defaults["location"] ? PropType<Anchor | null> : {
type: PropType<unknown extends Defaults["location"] ? Anchor | null : Anchor | Defaults["location"] | null>;
default: unknown extends Defaults["location"] ? Anchor | null : NonNullable<Anchor | null> | Defaults["location"];
};
};
export declare function useLocation(props: LocationProps, opposite?: boolean, offset?: (side: string) => number): {
locationStyles: import("vue").ComputedRef<CSSProperties>;
};