UNPKG

@bitrix24/b24ui-nuxt

Version:

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

64 lines (63 loc) 1.85 kB
import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/chip'; import type { ComponentConfig } from '../types/utils'; type Chip = ComponentConfig<typeof theme, AppConfig, 'chip'>; export interface ChipProps { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** Display some text inside the chip. */ text?: string | number; /** * @defaultValue 'danger' */ color?: Chip['variants']['color']; /** * @defaultValue 'sm' */ size?: Chip['variants']['size']; /** * The position of the chip. * @defaultValue 'top-right' */ position?: Chip['variants']['position']; /** * When `true`, keep the chip inside the component for rounded elements * @defaultValue false */ inset?: boolean; /** * When `true`, render the chip relatively to the parent. * @defaultValue false */ standalone?: boolean; class?: any; b24ui?: Chip['slots']; } export interface ChipEmits { (e: 'update:show', payload: boolean): void; } export interface ChipSlots { default(props?: {}): any; content(props?: {}): any; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & { show?: boolean; }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { "update:show": (value: boolean) => any; }, string, import("vue").PublicProps, Readonly<ChipProps & { show?: boolean; }> & Readonly<{ "onUpdate:show"?: ((value: boolean) => any) | undefined; }>, { inset: boolean; standalone: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };