UNPKG

@nuxt/ui

Version:

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

53 lines (52 loc) 1.75 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/page-hero'; import type { ButtonProps } from '../types'; import type { ComponentConfig } from '../types/tv'; type PageHero = ComponentConfig<typeof theme, AppConfig, 'pageHero'>; export interface PageHeroProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; headline?: string; title?: string; description?: string; /** * Display a list of Button under the description. * `{ size: 'xl' }`{lang="ts-type"} */ links?: ButtonProps[]; /** * The orientation of the page hero. * @defaultValue 'vertical' */ orientation?: PageHero['variants']['orientation']; /** * Reverse the order of the default slot. * @defaultValue false */ reverse?: boolean; class?: any; ui?: PageHero['slots']; } export interface PageHeroSlots { top(props?: {}): any; header(props?: {}): any; headline(props?: {}): any; title(props?: {}): any; description(props?: {}): any; body(props?: {}): any; footer(props?: {}): any; links(props?: {}): any; default(props?: {}): any; bottom(props?: {}): any; } declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PageHeroProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeroProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageHeroSlots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };