UNPKG

@eslamdevui/ui

Version:

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

53 lines (52 loc) 1.92 kB
import theme from '#build/ui/footer-columns'; import type { AppConfig } from '@nuxt/schema'; import type { LinkProps, ComponentConfig } from '../types'; type FooterColumns = ComponentConfig<typeof theme, AppConfig, 'footerColumns'>; export interface FooterColumnLink extends Omit<LinkProps, 'custom'> { label: string; /** * @IconifyIcon */ icon?: string; class?: any; ui?: Pick<FooterColumns['slots'], 'item' | 'link' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkLeadingIcon'>; } export interface FooterColumn<T extends FooterColumnLink = FooterColumnLink> { label: string; children?: T[]; } export interface FooterColumnsProps<T extends FooterColumnLink = FooterColumnLink> { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; class?: any; columns?: FooterColumn<T>[]; ui?: FooterColumns['slots']; } type SlotProps<T> = (props: { link: T; active: boolean; }) => any; export interface FooterColumnsSlots<T extends FooterColumnLink = FooterColumnLink> { 'left'(props?: {}): any; 'default'(props?: {}): any; 'right'(props?: {}): any; 'column-label'?: (props: { column: FooterColumn<T>; }) => any; 'link': SlotProps<T>; 'link-leading': SlotProps<T>; 'link-label': SlotProps<T>; 'link-trailing': SlotProps<T>; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FooterColumnsProps<FooterColumnLink>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterColumnsProps<FooterColumnLink>> & Readonly<{}>, { as: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FooterColumnsSlots<FooterColumnLink>>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };