UNPKG

@nuxt/ui

Version:

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

66 lines (65 loc) 2.36 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/changelog-version'; import type { BadgeProps, LinkProps, UserProps } from '../types'; import type { ComponentConfig } from '../types/tv'; type ChangelogVersion = ComponentConfig<typeof theme, AppConfig, 'changelogVersion'>; export interface ChangelogVersionProps { /** * The element or component this component should render as. * @defaultValue 'article' */ as?: any; title?: string; description?: string; /** The date of the changelog version. Can be a string or a Date object. */ date?: string | Date; /** * Display a badge on the changelog version. * Can be a string or an object. * `{ color: 'neutral', variant: 'solid' }`{lang="ts-type"} */ badge?: string | BadgeProps; /** The authors of the changelog version. */ authors?: UserProps[]; /** The image of the changelog version. Can be a string or an object. */ image?: string | (Partial<HTMLImageElement> & { [key: string]: any; }); /** * Display an indicator dot on the left. * @defaultValue true */ indicator?: boolean; to?: LinkProps['to']; target?: LinkProps['target']; onClick?: (event: MouseEvent) => void | Promise<void>; class?: any; ui?: ChangelogVersion['slots']; } export interface ChangelogVersionSlots { header(props?: {}): any; badge(props: { ui: ChangelogVersion['ui']; }): any; date(props?: {}): any; title(props?: {}): any; description(props?: {}): any; image(props: { ui: ChangelogVersion['ui']; }): any; body(props?: {}): any; footer(props?: {}): any; authors(props?: {}): any; actions(props?: {}): any; indicator(props: { ui: ChangelogVersion['ui']; }): any; } declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionSlots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };