@nuxt/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
46 lines (45 loc) • 1.7 kB
TypeScript
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/ui/page-feature';
import type { IconProps, LinkProps } from '../types';
import type { ComponentConfig } from '../types/tv';
type PageFeature = ComponentConfig<typeof theme, AppConfig, 'pageFeature'>;
export interface PageFeatureProps {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/**
* The icon displayed next to the title when `orientation` is `horizontal` and above the title when `orientation` is `vertical`.
* @IconifyIcon
*/
icon?: IconProps['name'];
title?: string;
description?: string;
/**
* The orientation of the page feature.
* @defaultValue 'horizontal'
*/
orientation?: PageFeature['variants']['orientation'];
to?: LinkProps['to'];
target?: LinkProps['target'];
onClick?: (event: MouseEvent) => void | Promise<void>;
class?: any;
ui?: PageFeature['slots'];
}
export interface PageFeatureSlots {
leading(props: {
ui: PageFeature['ui'];
}): any;
title(props?: {}): any;
description(props?: {}): any;
default(props?: {}): any;
}
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PageFeatureProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageFeatureProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageFeatureSlots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};