@nuxt/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
29 lines (28 loc) • 1.35 kB
text/typescript
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/ui/dashboard-panel';
import type { UseResizableProps } from '../composables/useResizable';
import type { ComponentConfig } from '../types/tv';
type DashboardPanel = ComponentConfig<typeof theme, AppConfig, 'dashboardPanel'>;
export interface DashboardPanelProps extends Pick<UseResizableProps, 'id' | 'minSize' | 'maxSize' | 'defaultSize' | 'resizable'> {
class?: any;
ui?: DashboardPanel['slots'];
}
export interface DashboardPanelSlots {
'default'(props?: {}): any;
'header'(props?: {}): any;
'body'(props?: {}): any;
'footer'(props?: {}): any;
'resize-handle'(props: {
onMouseDown: (e: MouseEvent) => void;
onTouchStart: (e: TouchEvent) => void;
onDoubleClick: (e: MouseEvent) => void;
}): any;
}
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardPanelSlots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};