@digitransit-component/digitransit-component-dialog-modal
v7.0.9
Published
digitransit-component dialog-modal module
Maintainers
Readme
@digitransit-component/digitransit-component-dialog-modal
DialogModal
A confirmation dialog (e.g. "Are you sure you want to delete this?") built on top of the HSL design system's Modal/ConfirmationModalContent. Button styling (colors, typography) is handled entirely by the design system's theme tokens, so it automatically follows the active deployment's theme.
Parameters
$0Object$0.headerText$0.dialogContent$0.handleClose(optional, default()=>{})$0.primaryButtonText$0.primaryButtonOnClick$0.primaryButtonVariant$0.secondaryButtonText$0.secondaryButtonOnClick$0.lang$0.isModalOpen
Examples
<DialogModal />This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.
Installation
Install this module individually:
$ npm install @digitransit-component/digitransit-component-dialog-modal