UNPKG

remotion

Version:

Render videos in React

25 lines 792 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbsoluteFill = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("react"); const AbsoluteFill = props => { const { style, ...other } = props; const actualStyle = react_1.useMemo(() => { return { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, width: '100%', height: '100%', display: 'flex', flexDirection: 'column', ...style, }; }, [style]); return jsx_runtime_1.jsx("div", Object.assign({ style: actualStyle }, other), void 0); }; exports.AbsoluteFill = AbsoluteFill; //# sourceMappingURL=AbsoluteFill.js.map