mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2026-01-30 10:25:29 +01:00
Digitransit components got 4 different color props, all containing static values. Default prop values were hard coded in all components. Some theme colors were not available. Now a sigle 'colors' prop which contains all required colors is used. Default colors are imported from a single place in Icon library. Some other prop refactoring is also included in this commit. |
||
|---|---|---|
| .. | ||
| src | ||
| index.js | ||
| LICENSE-AGPL.txt | ||
| LICENSE-EUPL.txt | ||
| package.json | ||
| README.md | ||
| test.js | ||
@digitransit-component/digitransit-component-dialog-modal
DialogModal
General component description in JSDoc format. Markdown is supported.
Parameters
$0Object$0.headerText$0.dialogContent$0.handleClose$0.primaryButtonText$0.primaryButtonOnClick$0.secondaryButtonText$0.secondaryButtonOnClick$0.lang$0.href$0.appElement$0.isModalOpen$0.modalAriaLabel$0.color$0.hoverColor
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
Or install the digitransit-component module that includes it as a class:
$ npm install @digitransit-component/digitransit-component