1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00
Files
csslayout/client/placeholders/BrowserFrame.tsx
Phuoc Nguyen cdb3c2041d Tweak layout
2021-05-09 16:47:39 +07:00

29 lines
729 B
TypeScript

/**
* A collection of popular layouts and patterns made with CSS (https://csslayout.io)
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
*/
import * as React from 'react';
import SampleCode from '../components/SampleCode';
import './browserFrame.css';
interface BrowserFrameProps {
css: string;
html: string;
}
const BrowserFrame: React.FC<BrowserFrameProps> = ({ children, css, html }) => {
return (
<>
<SampleCode fullHeight={true} lang="html" code={html} />
<SampleCode fullHeight={true} lang="css" code={css} />
<div className="demo__live">
{children}
</div>
</>
);
};
export default BrowserFrame;