1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-22 13:42:50 +02:00

Add a button to flip between demo/source

This commit is contained in:
Phuoc Nguyen
2019-11-15 15:40:03 +07:00
parent b3609fc8d2
commit 3668a6ee3a
2 changed files with 41 additions and 9 deletions

View File

@@ -6,11 +6,16 @@ import BrowserFrame from '../placeholders/BrowserFrame';
const Centering = () => {
return (
<DetailsLayout name="Centering">
<BrowserFrame>
<div className="h-100 flex flex-column items-center justify-center">
<div className="f1 b">CENTER</div>
</div>
</BrowserFrame>
<BrowserFrame
content={
<div className="h-100 flex flex-column items-center justify-center">
<div className="f1 b">CENTER</div>
</div>
}
source={
<div>source</div>
}
/>
</DetailsLayout>
);
};