An action to make elements like video or window full screen on click of the element action binded to. It adds methods to present a specific Element (and its descendants) in full-screen mode, and to exit full-screen mode once it is no longer needed. This makes it possible to present desired content—such as an online game—using the user's entire screen, removing all browser user interface elements and other applications from the screen until full-screen mode is shut off.



  import { fullScreenAction } from "svelte-legos";
  let ref;


<button use:fullScreenAction={ref}>
  Go Fullscreen

<!-- or if you don't pass ref it will fullscreen window -->

<button use:fullScreenAction>
  Go Fullscreen