@swc-react/dialog
Version:
React and Next.js wrapper of the @spectrum-web-components/dialog component
23 lines (22 loc) • 1.08 kB
TypeScript
import type { EventName } from '@lit/react';
import { Dialog as SpDialog } from '@spectrum-web-components/dialog';
import { DialogBase as SpDialogBase } from '@spectrum-web-components/dialog';
import { DialogWrapper as SpDialogWrapper } from '@spectrum-web-components/dialog';
import '@spectrum-web-components/dialog/sp-dialog-base.js';
import '@spectrum-web-components/dialog/sp-dialog-wrapper.js';
import '@spectrum-web-components/dialog/sp-dialog.js';
export declare const Dialog: import("@lit/react").ReactWebComponent<SpDialog, {
close: EventName<Event>;
}>;
export declare const DialogBase: import("@lit/react").ReactWebComponent<SpDialogBase, {
close: EventName<Event>;
}>;
export declare const DialogWrapper: import("@lit/react").ReactWebComponent<SpDialogWrapper, {
close: EventName<Event>;
secondary: EventName<Event>;
cancel: EventName<Event>;
confirm: EventName<Event>;
}>;
export type DialogType = EventTarget & SpDialog;
export type DialogBaseType = EventTarget & SpDialogBase;
export type DialogWrapperType = EventTarget & SpDialogWrapper;