@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
62 lines (61 loc) • 1.99 kB
text/typescript
import type { VNode } from 'vue';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/empty';
import type { ComponentConfig } from '../types/tv';
import type { ButtonProps, IconComponent } 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.
* @IconComponent
*/
icon?: IconComponent;
title?: string;
description?: string;
/**
* Display a list of Button in the body.
*/
actions?: ButtonProps[];
/**
* @defaultValue 'air-secondary-accent'
*/
color?: Empty['variants']['color'];
/**
* If set to `true` the color is inverted.
* Used for 'air-primary', 'air-primary-success', 'air-primary-alert', 'air-primary-copilot' and 'air-primary-warning' colors.
* @defaultValue false
*/
inverted?: boolean;
/**
* @defaultValue 'md'
*/
size?: Empty['variants']['size'];
class?: any;
b24ui?: Empty['slots'];
}
export interface EmptySlots {
header?(props?: {}): VNode[];
leading?(props: {
b24ui: Empty['b24ui'];
}): VNode[];
title?(props?: {}): VNode[];
description?(props?: {}): VNode[];
body?(props?: {}): VNode[];
actions?(props?: {}): VNode[];
footer?(props?: {}): VNode[];
}
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<EmptyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<EmptyProps> & Readonly<{}>, {
inverted: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, EmptySlots>;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};