UNPKG

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