UNPKG

@eslamdevui/ui

Version:

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

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