Develop ultra fast with Prismane 🎉

Modal API

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

Import

import { ModalProps, ModalHeaderProps, ModalFooterProps } from "@prismane/core";

Props

Modal

Modal 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.() =>

Modal.Header

Modal.Header extends Flex component's props.

Modal.Footer

Modal.Footer extends Flex component's props.

CSS

Modal

Modal extends Paper and Animation components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneModal-rootThe wrapper box of the modal.
root.PrismaneModal-root-openThe wrapper box of the modal based on the open state.

Modal.Header

Modal.Header extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneModalHeader-rootThe wrapper box of the modal's header component.

Modal.Footer

Modal.Footer extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneModalFooter-rootThe wrapper box of the modal's footer component.