Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
preact-fullscreen
Advanced tools
Component that performs fullscreen in DOM Elements
npm i preact-fullscreen
// OR
yarn add preact-fullscreen
Local demo:
git clone https://github.com/andrelmlins/preact-fullscreen.git
cd preact-fullscreen
yarn install && yarn start
import { h, render } from "preact";
import PreactFullscreeen from "preact-ullscreen";
const App = () => (
<PreactFullscreeen>
{({ ref, onRequest, onExit }) => (
<div
ref={ref}
style={{ backgroundColor: "red", width: 120, height: 120 }}
>
<button onClick={() => onRequest()}>FullScreen</button>
<button onClick={() => onExit()}>Screen</button>
</div>
)}
</PreactFullscreeen>
);
render(<App />, document.body);
Prop | Type | Description |
---|---|---|
onChange | func | Call in change |
onError | func | Call in error |
Prop | Type | Description |
---|---|---|
ref | object | Ref dom element |
onToggle | func | Call for fullscreen toggle |
onExit | func | Call for fullscreen exit |
onRequest | func | Call for fullscreen enter |
Download stats for this NPM package
Preact FullScreen is open source software licensed as MIT.
FAQs
Component that performs fullscreen in DOM Elements
We found that preact-fullscreen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.