Develop ultra fast with Prismane 🎉

Dialog API

Learn about the Dialog component's props and CSS classes.

Import

import {
  DialogProps,
  DialogHeaderProps,
  DialogFooterProps,
} from "@prismane/core";

Props

Dialog

Dialog extends Paper and Animation components' props.

NameTypeDescriptionDefault
openbooleanTriggers the open state of the dialog.false
closablebooleanTriggers the closable state of the dialog.-
onClose() => voidCallback that will be executed on closing the dialog.() =>

Dialog.Header

Dialog.Header extends Flex component's props.

Dialog.Footer

Dialog.Footer extends Flex component's props.

CSS

Dialog

Dialog extends Paper and Animation components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneDialog-rootThe wrapper box of the dialog.
root.PrismaneDialog-root-openThe wrapper box of the dialog based on the open state.

Dialog.Header

Dialog.Header extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneDialogHeader-rootThe wrapper box of the dialog's header component.

Dialog.Footer

Dialog.Footer extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneDialogFooter-rootThe wrapper box of the dialog's footer component.