UNPKG

1.17 kBTypeScriptView Raw
1import * as React from "react";
2import { type HTMLDivProps, type Props } from "../../common/props";
3import type { DialogStepButtonProps } from "./dialogStepButton";
4export type DialogStepId = string | number;
5export interface DialogStepProps extends Props, Omit<HTMLDivProps, "id" | "title" | "onClick"> {
6 /**
7 * Unique identifier used to identify which step is selected.
8 */
9 id: DialogStepId;
10 /**
11 * Panel content, rendered by the parent `MultistepDialog` when this step is active.
12 */
13 panel: React.JSX.Element;
14 /**
15 * Space-delimited string of class names applied to multistep dialog panel container.
16 */
17 panelClassName?: string;
18 /**
19 * Content of step title element, rendered in a list left of the active panel.
20 */
21 title?: React.ReactNode;
22 /**
23 * Props for the back button.
24 */
25 backButtonProps?: DialogStepButtonProps;
26 /**
27 * Props for the next button.
28 */
29 nextButtonProps?: DialogStepButtonProps;
30}
31/**
32 * Dialog step component.
33 *
34 * @see https://blueprintjs.com/docs/#core/components/dialog.dialogstep
35 */
36export declare const DialogStep: React.FC<DialogStepProps>;