{"id":20427378,"url":"https://github.com/mervinpraison/web-elements-ui","last_synced_at":"2026-04-19T01:37:25.898Z","repository":{"id":43435316,"uuid":"215088627","full_name":"MervinPraison/web-elements-ui","owner":"MervinPraison","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T12:26:00.000Z","size":1789,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-20T00:30:31.717Z","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/MervinPraison.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-10-14T16:09:31.000Z","updated_at":"2020-04-05T07:51:12.000Z","dependencies_parsed_at":"2023-02-02T12:17:13.582Z","dependency_job_id":null,"html_url":"https://github.com/MervinPraison/web-elements-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MervinPraison/web-elements-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MervinPraison%2Fweb-elements-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MervinPraison%2Fweb-elements-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MervinPraison%2Fweb-elements-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MervinPraison%2Fweb-elements-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MervinPraison","download_url":"https://codeload.github.com/MervinPraison/web-elements-ui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MervinPraison%2Fweb-elements-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-15T07:20:03.195Z","updated_at":"2026-04-19T01:37:25.867Z","avatar_url":"https://github.com/MervinPraison.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [web-components-ui-elements](#web-components-ui-elements)\n  - [Installation](#installation)\n  - [Usage](#usage)\n  - [API](#api)\n    - [Modal Window](#modal-window)\n      - [Tag Name](#tag-name)\n      - [Methods](#methods)\n        - [Open](#open)\n        - [Close](#close)\n      - [ICD](#icd)\n        - [Config](#config)\n  - [Contributing](#contributing)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# web-components-ui-elements\nA web components UI library.\n\n## Installation\n`npm install web-components-ui-elements`\n\n## Usage\nYou can require the whole library:\n\n`import * from web-components-ui-elements;`\n\nAnd use in the DOM like this:\n\n`\u003cce-modal-window id=\"modal-window\"\u003e\u003c/ce-modal-window\u003e`\n\nAnd then use the API:\n```\nconst modal = document.querySelector('#modal-window');\nmodal.open({\n    content: '\u003ch1\u003eHello Modal!\u003c/h1\u003e'\n});\n\n// close the modal when clicking on it\nfunction closeModal() {\n    modal.close();\n    modal.removeEventListener('click', closeModal);\n}\nmodal.addEventListener('click', closeModal);\n\n```\n\nIf you want, you can just create the element on your own and add it to the DOM:\n```\nconst modalWindow = document.createElement('ce-modal-window');\nmodalWindow.addEventListener('click', () =\u003e {\n    modalWindow.close();\n});\ndocument.body.appendChild(modalWindow);\n\nconst button = document.createElement('button');\nbutton.innerText = 'Open modal';\n\nbutton.addEventListener('click', () =\u003e {\n    modalWindow.open({\n        content: '\u003ch1\u003eHello Modal\u003c/h1\u003e',\n        height: 50,\n        width: 100\n    });\n});\ndocument.body.appendChild(button);\n```\n\n## API\n\n### Modal Window\n#### Tag Name\n`ce-modal-window`\n#### Methods\n##### Open\nAccepts a config object and opens the modal.\n##### Close\nCloses the modal\n#### ICD\n##### Config\n```\n{\n    content: '', // \u003cstring\u003e HTML snippet to show inside the modal\n    hideOverlay: false, // \u003cboolean\u003e show or hide the opack overlay behind the modal\n    height: 150, // \u003cnumber\u003e height of the modal\n    width: 150, // \u003cnumber\u003e width of the modal\n}\n```\n## Contributing\n- Clone\n- `npm i`\n- `npm run build` to get the build\n- `npm run test` to test\n- `npm run serve` to run a development environment\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmervinpraison%2Fweb-elements-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmervinpraison%2Fweb-elements-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmervinpraison%2Fweb-elements-ui/lists"}