UNPKG

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