UNPKG

retro-react

Version:

A React component library for building retro-style websites

2 lines (1 loc) 570 B
"use strict";var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),i=require("./CRT.styled.js");exports.CRT=n=>{var{children:s,phosphor:t="green",scanlines:c=!0,curvature:l=!0,flicker:o=!1,glowIntensity:a=.5}=n,u=e.__rest(n,["children","phosphor","scanlines","curvature","flicker","glowIntensity"]);return r.jsx(i.CRTContainer,Object.assign({$phosphor:t,$scanlines:c,$curvature:l,$flicker:o,$glowIntensity:a},u,{children:r.jsxs(i.CRTScreen,{children:[r.jsx(i.CRTContent,{children:s},void 0),c&&r.jsx(i.ScanlineOverlay,{},void 0)]},void 0)}),void 0)};