@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
49 lines (48 loc) • 1.83 kB
TypeScript
import type { VNode } from 'vue';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/page-feature';
import type { IconComponent, 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`.
* @IconComponent
*/
icon?: IconComponent;
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;
b24ui?: PageFeature['slots'];
}
export interface PageFeatureSlots {
leading?(props: {
b24ui: PageFeature['b24ui'];
}): VNode[];
title?(props?: {}): VNode[];
description?(props?: {}): VNode[];
default?(props?: {}): VNode[];
}
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PageFeatureProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageFeatureProps> & Readonly<{}>, {
orientation: PageFeature["variants"]["orientation"];
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageFeatureSlots>;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};