UNPKG

react-ios-pwa-prompt

Version:

A React component to prompt the user to add the app as a PWA to the home screen with native iOS styles.

18 lines (17 loc) 454 B
import { jsx as l } from "react/jsx-runtime"; import '../../assets/Panel.css';const s = "_panel_ta6xy_1", t = "_visible_ta6xy_16", e = { panel: s, visible: t }, n = ({ children: a, isOpen: i }) => /* @__PURE__ */ l( "div", { className: `${e.panel} ${i && e.visible} iOSPWA-panel`, "aria-describedby": "pwa-prompt-description", "aria-labelledby": "pwa-prompt-title", role: "dialog", children: a } ); export { n as Panel };