UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

49 lines (48 loc) 1.65 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/user'; import type { AvatarProps, ChipProps, LinkProps } from '../types'; import type { ComponentConfig } from '../types/tv'; type User = ComponentConfig<typeof theme, AppConfig, 'user'>; export interface UserProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; name?: string; description?: string; avatar?: Omit<AvatarProps, 'size'> & { [key: string]: any; }; chip?: boolean | Omit<ChipProps, 'size' | 'inset'>; /** * @defaultValue 'md' */ size?: User['variants']['size']; /** * The orientation of the user. * @defaultValue 'horizontal' */ orientation?: User['variants']['orientation']; to?: LinkProps['to']; target?: LinkProps['target']; onClick?: (event: MouseEvent) => void | Promise<void>; class?: any; b24ui?: User['slots']; } export interface UserSlots { avatar(props: { b24ui: User['b24ui']; }): any; name(props?: {}): any; description(props?: {}): any; default(props?: {}): any; } declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<UserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, UserSlots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };