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:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user