UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

25 lines (24 loc) 1.22 kB
import { type Ref } from 'vue'; import { type ExtractPublicPropTypes } from '../../_utils'; export interface AnchorInjection { activeHref: Ref<string | null>; mergedClsPrefix: Ref<string>; updateBarPosition: (el: HTMLElement) => void; setActiveHref: (href: string, transition?: boolean) => void; collectedLinkHrefs: string[]; titleEls: HTMLElement[]; } export declare const anchorInjectionKey: import("vue").InjectionKey<AnchorInjection>; export declare const anchorLinkProps: { readonly title: StringConstructor; readonly href: StringConstructor; }; export type AnchorLinkProps = ExtractPublicPropTypes<typeof anchorLinkProps>; declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ readonly title: StringConstructor; readonly href: StringConstructor; }>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ readonly title: StringConstructor; readonly href: StringConstructor; }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;