{"id":18801140,"url":"https://github.com/obsidiansoft-io/native-modal","last_synced_at":"2026-04-21T10:02:49.530Z","repository":{"id":57132730,"uuid":"195434263","full_name":"obsidiansoft-io/native-modal","owner":"obsidiansoft-io","description":"native modal for webcomponent with litElement ","archived":false,"fork":false,"pushed_at":"2019-07-09T15:22:37.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-28T01:41:16.064Z","etag":null,"topics":["litelement","modal","native","polymer","pwa-apps","webcomponents"],"latest_commit_sha":null,"homepage":null,"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/obsidiansoft-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-05T15:50:02.000Z","updated_at":"2019-07-09T15:22:56.000Z","dependencies_parsed_at":"2022-09-03T11:42:25.606Z","dependency_job_id":null,"html_url":"https://github.com/obsidiansoft-io/native-modal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obsidiansoft-io/native-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansoft-io%2Fnative-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansoft-io%2Fnative-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansoft-io%2Fnative-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansoft-io%2Fnative-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsidiansoft-io","download_url":"https://codeload.github.com/obsidiansoft-io/native-modal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansoft-io%2Fnative-modal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267520192,"owners_count":24100817,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["litelement","modal","native","polymer","pwa-apps","webcomponents"],"created_at":"2024-11-07T22:22:29.470Z","updated_at":"2026-04-21T10:02:44.486Z","avatar_url":"https://github.com/obsidiansoft-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# native-modal\n\nNative webcomponent modal  for the [Polymer 3](https://www.polymer-project.org/) with LitElement.\n\n[![license](https://camo.githubusercontent.com/11ad3ffb000cd7668567587af947347c738b6472/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f657870726573732e7376673f7374796c653d666c61742d737175617265266d61784167653d33363030)](http://opensource.org/licenses/MIT)\n\n\u003cimg src=\"https://github.com/obsidiansoft-io/native-modal/blob/master/docs/ios.png?raw=true\" width=\"400\"/\u003e\n\n## Installation\n\n```bash\nnpm i @obsidiansoft/native-modal\n```\n\n## Properties\n\nProperty | Type | Description\n------------ | ------------- | -------------\n`title` | String | Header title for the modal\n`alwaysFullScreen` (optional) | Boolean | Makes the modal occupy the entire screen in desktop\n`style` | String | Styles, must follow the StylesInline standard\n`device` | String | Type of devices (must be 'ios' or 'android')\n`hideHeader` | Boolean | Hide title header\n\n## Example\n\n```html\n  \u003cnative-modal title=\"native modal title\"  alwaysFullScreen\u003e\n    \u003cdiv slot=\"content\"\u003e\n      \u003cbutton @click=\"${this.hanldeclic}\"\u003eclose modal\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cbutton slot=\"btn-action\"\u003eopen modal\u003c/button\u003e \n  \u003c/native-modal\u003e\n```\n\n## Usage with LitElement and slot tag\n\n🚨 We don't advise the use with Polymer Element because it's deprecated.\nnote: use tag slot for render elemenets into modal, use slot=\"content\" for add elements in the modal body and use slot=\"btn-action\" for add open action in a element (this case is a button element)\n```javascript\nimport { LitElement, html} from 'lit-element';\nimport '@obsidiansoft/native-modal';\n\nclass SomeClass extends LitElement {\n render() {\n    return html`\n      \u003cnative-modal title=\"native modal title\"  alwaysFullScreen\u003e\n        \u003cdiv slot=\"content\"\u003e\n          modal body here\n        \u003c/div\u003e\n        \u003cbutton slot=\"btn-action\"\u003eopen modal\u003c/button\u003e \n      \u003c/native-modal\u003e\n    `;\n  }\n}\n\ncustomElements.define('custom-component', SomeClass );\n```\n## Usage with CustomEvents \nadd event 'toggleNativeModal' for open or close modal \n```javascript\nimport { LitElement, html} from 'lit-element';\nimport '@obsidiansoft/native-modal';\n\nclass SomeClass extends LitElement {\n hanldeclic(e) {\n    let myEvent = new CustomEvent('toggleNativeModal', {\n      bubbles: true,\n      composed: true\n    });\n    this.dispatchEvent(myEvent);\n  }\n render() {\n    return html`\n      \u003cnative-modal title=\"native modal title\"  alwaysFullScreen\u003e\n        \u003cdiv slot=\"content\"\u003e\n          \u003cbutton @click=\"${this.hanldeclic}\"\u003eclose modal\u003c/button\u003e\n        \u003c/div\u003e\n        \u003cbutton slot=\"btn-action\"\u003eopen modal\u003c/button\u003e \n      \u003c/native-modal\u003e\n    `;\n  }\n}\n\ncustomElements.define('custom-component', SomeClass );\n```\n## Supported Node Versions\n\nWe have test it with node \u003e= 10. We will support on even Nodejs versions that are current or in maintenance.\n\n## License\n\nUnless otherwise noted, the fa-icon source files are distributed under the MIT license found in the LICENSE file.\n\n## Sponsorship\n\nDevelopment of the native-modal is currently sponsored by [ObsidianSoft](https://obsidiansoft.io/) and generously supported by contributions from individuals.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiansoft-io%2Fnative-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsidiansoft-io%2Fnative-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiansoft-io%2Fnative-modal/lists"}