2.0.0 • Published 3 years ago

svelte-fullscreen v2.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

Svelte FullScreen

npm version License: MIT Build Status Netlify Status Language grade: JavaScript

Component that performs fullscreen in DOM Elements

Installation

npm i svelte-fullscreen
// OR
yarn add svelte-fullscreen

Note: to use this library in sapper, install as devDependency. See the link.

Demo Link

Local demo:

git clone https://github.com/andrelmlins/svelte-fullscreen.git
cd svelte-fullscreen
yarn install && yarn start

Examples

An example of how to use the library:

<script>
  import Fullscreen from "svelte-fullscreen";
</script>

<style>
  div {
    background-color: red;
    width: 120px;
    height: 120px;
  }
</style>

<Fullscreen let:onRequest let:onExit>
  <div>
    <button on:click={() => onRequest()}>FullScreen</button>
    <button on:click={() => onExit()}>Screen</button>
  </div>
</Fullscreen>

Properties

Raw component props (before transform):

PropTypeDescription
changefuncCall in change
errorfuncCall in error

Slot Properties

Raw component props (before transform):

PropTypeDescription
onTogglefuncCall for fullscreen toggle
onExitfuncCall for fullscreen exit
onRequestfuncCall for fullscreen enter

NPM Statistics

Download stats for this NPM package

NPM

License

Svelte FullScreen is open source software licensed as MIT.

2.0.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago