@nuxt/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
54 lines (53 loc) • 1.67 kB
TypeScript
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/ui/empty';
import type { ComponentConfig } from '../types/tv';
import type { ButtonProps, IconProps, AvatarProps } from '../types';
type Empty = ComponentConfig<typeof theme, AppConfig, 'empty'>;
export interface EmptyProps {
/**
* The element or component this component should render as.
* @defaultValue 'div'
*/
as?: any;
/**
* The icon displayed above the title.
* @IconifyIcon
*/
icon?: IconProps['name'];
avatar?: AvatarProps;
title?: string;
description?: string;
/**
* Display a list of Button in the body.
*/
actions?: ButtonProps[];
/**
* @defaultValue 'outline'
*/
variant?: Empty['variants']['variant'];
/**
* @defaultValue 'md'
*/
size?: Empty['variants']['size'];
class?: any;
ui?: Empty['slots'];
}
export interface EmptySlots {
header(props?: {}): any;
leading(props: {
ui: Empty['ui'];
}): any;
title(props?: {}): any;
description(props?: {}): any;
body(props?: {}): any;
actions(props?: {}): any;
footer(props?: {}): any;
}
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, EmptySlots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};