@grafana/ui
Version:
Grafana Components Library
30 lines (29 loc) • 1.01 kB
TypeScript
import { PropsWithChildren } from 'react';
import * as React from 'react';
import { IconName } from '../../types/icon';
export interface Props {
/** @deprecated no longer used */
icon?: IconName;
/** @deprecated no longer used */
iconTooltip?: string;
/** Title for the modal or custom header element */
title: string | JSX.Element;
className?: string;
contentClassName?: string;
closeOnEscape?: boolean;
closeOnBackdropClick?: boolean;
trapFocus?: boolean;
isOpen?: boolean;
onDismiss?: () => void;
/** If not set will call onDismiss if that is set. */
onClickBackdrop?: () => void;
}
export declare function Modal(props: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element | null;
export declare namespace Modal {
var ButtonRow: typeof ModalButtonRow;
}
declare function ModalButtonRow({ leftItems, children }: {
leftItems?: React.ReactNode;
children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export {};