z-pwa-install-dialog-react
A simple, customizable React(Next js compatible) components for handling PWA (Progressive Web App) installation dialogs. It detects device configurations (OS, browser) and displays the right installation instructions for the user.
- No UI library dependencies, but designed to resemble ShadCN UI.
- Auto detects device OS, browser, and shows tailored instructions.
- Super simple to use with just one component.
- Fully customizable dialog and instructions.
Install with npm:
npm install z-pwa-install-dialog-react
for more detailed demo projects: 🔗 https://github.com/zeeenku/pwa-install-dialog-demo
"use client";
import { ZPwaInstallDialog } from 'z-pwa-install-dialog-react';
function App() {
return (<ZPwaInstallDialog/>);
}
export default App;
"use client";
import { ZPwaInstallDialog } from 'z-pwa-install-dialog-react';
function App() {
return (
<ZPwaInstallDialog>
{/* jsx element if you want */}
<div>install</div>
</ZPwaInstallDialog>
);
}
export default App;
"use client";
import { ZPwaInstallDialog } from 'z-pwa-install-dialog-react';
function App() {
const handleDownload = () => { /* Download logic */ };
const handleClose = () => { /* Close logic */ };
return (
<ZPwaInstallDialog
title="hello world"
onDownloadPwa={handleDownload}
onClose={handleClose}
//isOpen={open}
>
<div>install</div>
</ZPwaInstallDialog>
);
}
export default App;
"use client";
import { ZPwaInstallInstruc } from 'z-pwa-install-dialog-react';
function App() {
return (
<>
<h1>Welcome to the PWA Install Demo</h1>
<ZPwaInstallInstruc/>
</>
);
}
export default App;
Zenku (Enajjachi Zakariaa) – Initial Work
Enthusiastic Developer & Programmer working on ideas that exhilarate him. I specialize in full-stack development with a focus on TypeScript, Laravel, React, and Vue.
Interested in collaborating or have a project in mind? Feel free to reach out:
https://dev.zeenku.com/contact
Or use your preferred method—I'm always open to meaningful conversations.
If you come across any bugs or have ideas for improvement, don’t hesitate to open an issue or submit a pull request. 😊