retro-react
Version:
A React component library for building retro-style websites
2 lines (1 loc) • 593 B
JavaScript
import{__rest as r}from"../../_virtual/_tslib.js";import{jsx as e,jsxs as i}from"react/jsx-runtime";import{CRTContainer as n,CRTScreen as o,CRTContent as t,ScanlineOverlay as s}from"./CRT.styled.js";const c=c=>{var{children:l,phosphor:h="green",scanlines:a=!0,curvature:d=!0,flicker:p=!1,glowIntensity:u=.5}=c,v=r(c,["children","phosphor","scanlines","curvature","flicker","glowIntensity"]);return e(n,Object.assign({$phosphor:h,$scanlines:a,$curvature:d,$flicker:p,$glowIntensity:u},v,{children:i(o,{children:[e(t,{children:l},void 0),a&&e(s,{},void 0)]},void 0)}),void 0)};export{c as CRT};