UNPKG

@eslamdevui/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

43 lines (42 loc) 1.56 kB
import theme from '#build/ui/page-anchors'; import type { AppConfig } from '@nuxt/schema'; import type { LinkProps, ComponentConfig } from '../types'; type PageAnchors = ComponentConfig<typeof theme, AppConfig, 'pageAnchors'>; export interface PageAnchor extends Omit<LinkProps, 'custom'> { label: string; /** * @IconifyIcon */ icon?: string; class?: any; ui?: Pick<PageAnchors['slots'], 'item' | 'link' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkLeading' | 'linkLeadingIcon'>; } export interface PageAnchorsProps<T extends PageAnchor = PageAnchor> { /** * The element or component this component should render as. * @defaultValue 'nav' */ as?: any; links?: T[]; class?: any; ui?: PageAnchors['slots']; } type SlotProps<T> = (props: { link: T; active: boolean; }) => any; export interface PageAnchorsSlots<T extends PageAnchor = PageAnchor> { 'link': SlotProps<T>; 'link-leading': SlotProps<T>; 'link-label': SlotProps<T>; 'link-trailing': SlotProps<T>; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageAnchorsProps<PageAnchor>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageAnchorsProps<PageAnchor>> & Readonly<{}>, { as: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageAnchorsSlots<PageAnchor>>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };