{"id":19312023,"url":"https://github.com/weblineindia/reactjs-messagedialog","last_synced_at":"2026-05-09T05:34:14.275Z","repository":{"id":57347621,"uuid":"282209635","full_name":"weblineindia/ReactJS-MessageDialog","owner":"weblineindia","description":"ReactJS based MessageDialog component used for showing custom dialog with message. You can even change number of buttons on that. You can also hide header and cross icon.","archived":false,"fork":false,"pushed_at":"2023-12-27T08:22:38.000Z","size":207,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-28T07:43:54.291Z","etag":null,"topics":["alert-box","alertbox","custom-dialog","message-dialog","messagedialog","messagedialog-component","react-alert-box","react-components","react-demo","react-libraries","react-message","reactjs","reactjs-alert-box","reactjs-components","reactjs-demo","reactjs-library","reactjs-messagedialog","reusable-components"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/communities.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-07-24T12:05:08.000Z","updated_at":"2024-04-15T12:28:18.368Z","dependencies_parsed_at":"2024-04-15T12:28:14.759Z","dependency_job_id":"3034ef21-cb94-4509-83dc-50335268f552","html_url":"https://github.com/weblineindia/ReactJS-MessageDialog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReactJS-MessageDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReactJS-MessageDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReactJS-MessageDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FReactJS-MessageDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/ReactJS-MessageDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alert-box","alertbox","custom-dialog","message-dialog","messagedialog","messagedialog-component","react-alert-box","react-components","react-demo","react-libraries","react-message","reactjs","reactjs-alert-box","reactjs-components","reactjs-demo","reactjs-library","reactjs-messagedialog","reusable-components"],"created_at":"2024-11-10T00:32:14.606Z","updated_at":"2026-05-09T05:34:14.223Z","avatar_url":"https://github.com/weblineindia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactJS - MessageDialog component\n\nReactJS based MessageDialog component used for showing custom dialog with message. You can even change number of buttons on that. You can also hide header and cross icon.\n\n## Table of contents\n\n- [Browser Support](#browser-support)\n- [Demo](#demo)\n- [Getting started](#getting-started)\n- [Usage](#usage)\n- [Available Props](#available-props)\n- [Methods](#methods)\n- [Want to Contribute?](#want-to-contribute)\n- [Collection of Other Components](#collection-of-components)\n- [Changelog](#changelog)\n- [License](#license)\n\n## Browser Support\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\n\n## Demo\n\n[![](modaldialog.gif)](https://github.com/weblineindia/ReactJS-MessageDialog/modaldialog.gif)\n\n## Getting started\n\n```bash\nnpm install react-weblineindia-message-dialog-box\n# or use npm\nyarn add react-weblineindia-message-dialog-box\n```\n\n## Usage\n\n```js\nimport React, { Component } from \"react\";\nimport MessageDialogBox from 'react-weblineindia-message-dialog-box'\n\nclass Test extends Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      visible: true,\n      content: \"Hello\",\n      showHeader: \"Modal Title\",\n      buttons: [\n        {\n          id: 1,\n          title: \"Yes\"\n        },\n        {\n          id: 2,\n          title: \"No\"\n        }\n      ]\n    };\n  }\n\n  onClose(value) {\n    this.setState({\n      visible: value\n    });\n  }\n\n  onButtonClick(event, value) {\n    this.setState({\n      visible: !value\n    });\n  }\n\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cMessageDialogBox\n          content={this.state.content}\n          visible={this.state.visible}\n          buttons={this.state.buttons} \n          onClose={this.onClose.bind(this)}\n          onButtonClick={this.onButtonClick.bind(this)}\n        /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default Test;\n```\n\n## Available Props\n\n| Prop            | Data Type | Default | Description                                                                      |\n| --------------- | --------- | ------- | -------------------------------------------------------------------------------- |\n| `id`            | string    |         | id of the component                                                              |\n| `name`          | string    |         | name of the component                                                            |\n| `visible`       | Boolean   | false   | Show/Hide Modal.                                                                 |\n| `content`       | String    |         | Content of the modal                                                             |\n| `buttons`       | Array     | []      | Buttons objects to contain the button label, button click event, no buttons etc. |\n| `showHeader`    | boolean   | false   | To hide or show the header of the component.                                     |\n| `headerContent` | String    |         | header Content of the modal.                                                     |\n\n## Methods\n\n| Name            | Description                           | Value             |\n| --------------- | ------------------------------------- | ----------------- |\n| `onButtonClick` | Emitted when the button click         | event             |\n| `close`         | Emitted when click on the close modal | event ,modalValue |\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n---\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/software-development-resources.html).\n\n---\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/ReactJS-MessageDialog/blob/master/LICENSE\n\n## Keywords\n\nreact-weblineindia-message-dialog-box, message-dialog-box, react-message-dialog-box, reactjs-message-dialog-box, alertbox, messagedialog, message-dialogbox, react-alertbox\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Freactjs-messagedialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Freactjs-messagedialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Freactjs-messagedialog/lists"}