{"id":13604256,"url":"https://github.com/andrelmlins/svelte-fullscreen","last_synced_at":"2025-07-03T17:36:05.525Z","repository":{"id":41344804,"uuid":"222159604","full_name":"andrelmlins/svelte-fullscreen","owner":"andrelmlins","description":"Component that performs fullscreen in DOM Elements","archived":false,"fork":false,"pushed_at":"2023-01-07T10:33:37.000Z","size":556,"stargazers_count":65,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T17:54:12.914Z","etag":null,"topics":["fullscreen","library","screenfull","svelte"],"latest_commit_sha":null,"homepage":"https://svelte-fullscreen.netlify.com/","language":"Svelte","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/andrelmlins.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-11-16T21:09:00.000Z","updated_at":"2024-10-31T09:45:53.000Z","dependencies_parsed_at":"2023-02-06T22:31:20.184Z","dependency_job_id":null,"html_url":"https://github.com/andrelmlins/svelte-fullscreen","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/andrelmlins/svelte-fullscreen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-fullscreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-fullscreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-fullscreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-fullscreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrelmlins","download_url":"https://codeload.github.com/andrelmlins/svelte-fullscreen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrelmlins%2Fsvelte-fullscreen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263370171,"owners_count":23456425,"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":["fullscreen","library","screenfull","svelte"],"created_at":"2024-08-01T19:00:42.368Z","updated_at":"2025-07-03T17:36:05.150Z","avatar_url":"https://github.com/andrelmlins.png","language":"Svelte","funding_links":[],"categories":["UI Componentes"],"sub_categories":["Comunidade Global"],"readme":"# Svelte FullScreen\n\n[![npm version](https://badge.fury.io/js/svelte-fullscreen.svg)](https://www.npmjs.com/package/svelte-fullscreen) \u0026bull; [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/svelte-fullscreen/blob/master/LICENSE) \u0026bull; [![Node.js CI](https://github.com/andrelmlins/svelte-fullscreen/actions/workflows/nodejs.yml/badge.svg)](https://github.com/andrelmlins/svelte-fullscreen/actions/workflows/nodejs.yml) \u0026bull; [![Netlify Status](https://api.netlify.com/api/v1/badges/30d7b769-4f7a-40db-9575-032fca47b888/deploy-status)](https://app.netlify.com/sites/svelte-fullscreen/deploys) \u0026bull; [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/andrelmlins/svelte-fullscreen.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/andrelmlins/svelte-fullscreen/context:javascript)\n\nComponent that performs fullscreen in DOM Elements\n\n## Installation\n\n```\nnpm i svelte-fullscreen\n// OR\nyarn add svelte-fullscreen\n```\n\n\u003cem\u003eNote: to use this library in sapper, install as devDependency. See the [link](https://github.com/sveltejs/sapper-template#using-external-components).\u003c/em\u003e\n\n## Demo [Link](https://svelte-fullscreen.netlify.com/)\n\nLocal demo:\n\n```\ngit clone https://github.com/andrelmlins/svelte-fullscreen.git\ncd svelte-fullscreen\nyarn install \u0026\u0026 yarn start\n```\n\n## Examples\n\nAn example of how to use the library:\n\n```svelte\n\u003cscript\u003e\n  import Fullscreen from \"svelte-fullscreen\";\n\u003c/script\u003e\n\n\u003cstyle\u003e\n  div {\n    background-color: red;\n    width: 120px;\n    height: 120px;\n  }\n\u003c/style\u003e\n\n\u003cFullscreen let:onRequest let:onExit\u003e\n  \u003cdiv\u003e\n    \u003cbutton on:click={() =\u003e onRequest()}\u003eFullScreen\u003c/button\u003e\n    \u003cbutton on:click={() =\u003e onExit()}\u003eScreen\u003c/button\u003e\n  \u003c/div\u003e\n\u003c/Fullscreen\u003e\n```\n\n## Properties\n\nRaw component props (before transform):\n\n| Prop   | Type | Description    |\n| ------ | ---- | -------------- |\n| change | func | Call in change |\n| error  | func | Call in error  |\n\n## Slot Properties\n\nRaw component props (before transform):\n\n| Prop      | Type | Description                |\n| --------- | ---- | -------------------------- |\n| onToggle  | func | Call for fullscreen toggle |\n| onExit    | func | Call for fullscreen exit   |\n| onRequest | func | Call for fullscreen enter  |\n\n## Browsers Support\n\nYou can see the list of supported browsers [here](https://caniuse.com/fullscreen)\n\n![Browsers support](assets/browser-support.png)\n\n## License\n\nSvelte FullScreen is open source software [licensed as MIT](https://github.com/andrelmlins/svelte-fullscreen/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-fullscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrelmlins%2Fsvelte-fullscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrelmlins%2Fsvelte-fullscreen/lists"}