Z
Zyeon UI

useFullscreen · Zyeon UI

A hook that requests/exits native fullscreen on a single element via a callback ref, keeping a fullscreen boolean in sync (including Esc) through useSyncExternalStore.

npx shadcn@latest add @zyeon/use-fullscreen
Preview useFullscreen on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useFullscreen hasn't had its turn. Its source will show here once it has.