@volverjs/ui-vue
Version:
@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.
48 lines (47 loc) • 1.37 kB
TypeScript
import type { ExtractPropTypes } from 'vue';
import type { AccordionGroupState } from '../../types/group';
export declare const VvAccordionProps: {
/**
* Accordion name
*/
name: StringConstructor;
/**
* Header title
*/
title: StringConstructor;
/**
* Content text
*/
content: StringConstructor;
/**
* (Optional) Defines if item is open. Event "update:modelValue" is emitted on accordion header click
*/
modelValue: {
type: BooleanConstructor;
default: undefined;
};
/**
* If true, the accordion will be disabled
*/
disabled: BooleanConstructor;
/**
* If true, the accordion will be opened by default
*/
not: BooleanConstructor;
modifiers: {
type: PropType<string | string[]>;
default: undefined;
};
};
export declare const VvAccordionEvents: string[];
export type VvAccordionPropsTypes = ExtractPropTypes<typeof VvAccordionProps>;
/**
* Merges local and group props
*/
export declare function useGroupProps(props: VvAccordionPropsTypes): {
isInGroup: globalThis.ComputedRef<boolean>;
group: AccordionGroupState | undefined;
modifiers: globalThis.ComputedRef<string[]>;
disabled: globalThis.ComputedRef<boolean>;
bus: import("mitt").Emitter<import("../..").AccordionGroupBusEvents> | undefined;
};