{"id":23053370,"url":"https://github.com/component/dialog","last_synced_at":"2025-08-15T03:32:34.858Z","repository":{"id":3195597,"uuid":"4228631","full_name":"component/dialog","owner":"component","description":"Dialog component","archived":false,"fork":false,"pushed_at":"2015-06-04T11:18:51.000Z","size":515,"stargazers_count":52,"open_issues_count":5,"forks_count":30,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-03T13:43:43.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-04T20:01:33.000Z","updated_at":"2023-08-25T09:44:52.000Z","dependencies_parsed_at":"2022-09-09T06:11:01.088Z","dependency_job_id":null,"html_url":"https://github.com/component/dialog","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/dialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229678800,"owners_count":18106299,"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":[],"created_at":"2024-12-16T00:17:50.766Z","updated_at":"2024-12-16T00:17:51.303Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Dialog\n\n  Dialog component with structural styling to give you a clean slate.\n\n  ![js dialog component](http://f.cl.ly/items/0r140j3W323T3c3i2H3a/Screen%20Shot%202012-07-26%20at%203.11.20%20PM.png)\n\n  Live demo is [here](http://component.github.io/dialog/)\n\n## Installation\n\n```\n$ npm install dialog-component\n```\n\n## Features\n\n  - events for composition\n  - structural CSS letting you decide on style\n  - overlay support\n  - modal overlay support\n  - escapable (esc key support)\n  - fluent API\n\n## Events\n\n  - `show` the dialog is shown\n  - `hide` the dialog is hidden\n  - `escape` the dialog was closed via the escape key\n  - `close` the dialog was closed via the close button\n\n## API\n\n### dialog(msg)\n\n  Display a dialog with a `msg` only.\n\n### dialog(title, msg)\n\n  Display a dialog with `title` and `msg`.\n\n### Dialog#closable()\n\n  Make the dialog closable, this adds a ×\n  that users make click to forcefully close\n  the dialog.\n\n### Dialog#effect(name)\n\n  Assign the effect name, driven by CSS transitions.\n  Out of the box the following are available:\n\n  - `slide`\n  - `fade`\n  - `scale`\n\n### Dialog#overlay()\n\n  Add a clickable overlay, which closes the dialog.\n\n### Dialog#modal()\n\n  Add a non-clickable overlay making it modal.\n\n### Dialog#fixed()\n\n  Dialogs are centered by default. If you'd rather use CSS to position the dialog make it `fixed`;\n  no per element CSS properties are added to such dialogs.\n\n### Dialog#escapable()\n\n  This is __private__ as it is implied by other options.\n  If no overlay is used, or the overlay is non-modal\n  then a user may close the dialog by pressing the escape key.\n\n### Dialog#show()\n\n  Show the dialog.\n\n### Dialog#hide([ms])\n\n  Hide the dialog immediately or wait `ms`.\n\n### Dialog#addClass(name)\n\n  Add class `name`, useful for styling dialogs differently.\n\n## License\n\n  MIT\n\n## Developers\n\nInstall [component-test](https://github.com/MatthewMueller/component-test)\nglobally in order to run unit tests:\n\n```bash\nsudo npm install -g component-test2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdialog/lists"}