@synergy-design-system/vue
Version:
Vue3 wrappers for the Synergy Design System
49 lines (48 loc) • 1.63 kB
TypeScript
import { SynMenuItem } from '@synergy-design-system/components';
type __VLS_Props = {
/**
* The type of menu item to render.
* To use `checked`, this value must be set to `checkbox`.
*/
type?: SynMenuItem['type'];
/**
* Draws the item in a checked state.
*/
checked?: SynMenuItem['checked'];
/**
* A unique value to store in the menu item.
* This can be used as a way to identify menu items when selected.
*/
value?: SynMenuItem['value'];
/**
* Draws the menu item in a loading state.
*/
loading?: SynMenuItem['loading'];
/**
* Draws the menu item in a disabled state, preventing selection.
*/
disabled?: SynMenuItem['disabled'];
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {
nativeElement: unknown;
};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
nativeElement: import('vue').Ref<SynMenuItem | undefined, SynMenuItem | undefined>;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
nativeElement: unknown;
}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};