UNPKG

@bitrix24/b24ui-nuxt

Version:

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

60 lines (59 loc) 1.92 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/badge'; import type { UseComponentIconsProps } from '../composables/useComponentIcons'; import type { ComponentConfig } from '../types/utils'; type Badge = ComponentConfig<typeof theme, AppConfig, 'badge'>; export interface BadgeProps extends Omit<UseComponentIconsProps, 'loading' | 'loadingIcon'> { /** * The element or component this component should render as. * @defaultValue 'span' */ as?: any; label?: string | number; /** * @defaultValue 'default' */ color?: Badge['variants']['color']; /** * @defaultValue 'normal' */ depth?: Badge['variants']['depth']; /** * @defaultValue 'md' */ size?: Badge['variants']['size']; /** Render the badge with equal padding on all sides. */ square?: boolean; /** * Shows 'underline' on hover * @defaultValue false */ useLink?: boolean; /** * Shows icons.close on the right side * @defaultValue false */ useClose?: boolean; onCloseClick?: ((event: MouseEvent) => void | Promise<void>) | Array<((event: MouseEvent) => void | Promise<void>)>; /** * Fills the background * @defaultValue false */ useFill?: boolean; class?: any; b24ui?: Badge['slots']; } export interface BadgeSlots { leading(props?: {}): any; default(props?: {}): any; trailing(props?: {}): any; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, { as: any; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };