@bitrix24/b24ui-nuxt
Version:
Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE
46 lines (45 loc) • 1.51 kB
TypeScript
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/avatar';
import type { IconComponent, ChipProps } from '../types';
import type { ImgHTMLAttributes } from '../types/html';
import type { ComponentConfig } from '../types/tv';
type Avatar = ComponentConfig<typeof theme, AppConfig, 'avatar'>;
export interface AvatarProps extends /** @vue-ignore */ Omit<ImgHTMLAttributes, 'src' | 'alt'> {
/**
* The element or component this component should render as.
* @defaultValue 'span'
*/
as?: any | {
root?: any;
img?: any;
};
src?: string;
alt?: string;
/**
* Display an icon on the left side.
* @IconComponent
*/
icon?: IconComponent;
text?: string;
/**
* @defaultValue 'md'
*/
size?: Avatar['variants']['size'];
chip?: boolean | ChipProps;
class?: any;
style?: any;
b24ui?: Avatar['slots'];
}
export interface AvatarSlots {
default(props?: {}): any;
}
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
default?: (props: {}) => any;
}>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};