bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
68 lines (67 loc) • 2.43 kB
TypeScript
import { BCollapseProps } from '../../types/ComponentProps';
import { BvTriggerableEvent } from '../../utils';
declare let __VLS_typeProps: Omit<BCollapseProps, 'modelValue'>;
type SharedSlotsData = {
hide: () => void;
id: string;
show: () => void;
toggle: () => void;
visible: boolean;
};
type __VLS_PublicProps = {
modelValue?: Exclude<BCollapseProps['modelValue'], undefined>;
} & typeof __VLS_typeProps;
declare function __VLS_template(): {
slots: Readonly<{
default?: (props: SharedSlotsData) => any;
footer?: (props: SharedSlotsData) => any;
header?: (props: SharedSlotsData) => any;
}> & {
default?: (props: SharedSlotsData) => any;
footer?: (props: SharedSlotsData) => any;
header?: (props: SharedSlotsData) => any;
};
refs: {
element: unknown;
};
attrs: Partial<{}>;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
hide: () => void;
isNav: boolean;
show: () => void;
toggle: () => void;
visible: Readonly<import('vue').Ref<boolean, boolean>>;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
'update:modelValue': (modelValue: boolean) => any;
hidden: () => any;
hide: (value: BvTriggerableEvent) => any;
'hide-prevented': () => any;
show: (value: BvTriggerableEvent) => any;
'show-prevented': () => any;
shown: () => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
onShow?: ((value: BvTriggerableEvent) => any) | undefined;
onHidden?: (() => any) | undefined;
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
onHide?: ((value: BvTriggerableEvent) => any) | undefined;
"onHide-prevented"?: (() => any) | undefined;
"onShow-prevented"?: (() => any) | undefined;
onShown?: (() => any) | undefined;
}>, {
id: string;
tag: string;
isNav: boolean;
horizontal: boolean;
skipAnimation: boolean;
toggle: boolean;
visible: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};