|
1 | | -import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks"; |
| 1 | +import { Meta, Story, Canvas, Props } from "@storybook/addon-docs/blocks"; |
2 | 2 | import { CommonHeader, DemoUI } from "../Utils"; |
3 | 3 | import { CenterType, ViewPort, Fixed, Top, Right, LeftResizable, BottomResizable, Fill, Options } from "../../"; |
4 | 4 |
|
@@ -48,7 +48,7 @@ have any visual element, padding or margins leaving it up to you to fill them or |
48 | 48 | you want.* |
49 | 49 |
|
50 | 50 | <React.StrictMode> |
51 | | - <Fixed style={{ outline: '1px solid black' }} height={400}> |
| 51 | + <Fixed style={{ outline: '1px solid black' }} className="container" height={400}> |
52 | 52 | <LeftResizable style={{ borderRight: '1px dashed black' }} size="25%" centerContent={CenterType.HorizontalVertical}> |
53 | 53 | Sidebar |
54 | 54 | </LeftResizable> |
@@ -88,7 +88,7 @@ const App = () => ( |
88 | 88 | Here we have added additional nested spaces inside the original `<Fill />` space to achieve this: |
89 | 89 |
|
90 | 90 | <React.StrictMode> |
91 | | - <Fixed style={{ outline: '1px solid black' }} height={400}> |
| 91 | + <Fixed style={{ outline: '1px solid black' }} className="container" height={400}> |
92 | 92 | <LeftResizable style={{ borderRight: '1px dashed black' }} size="25%" centerContent={CenterType.HorizontalVertical}> |
93 | 93 | Sidebar |
94 | 94 | </LeftResizable> |
@@ -141,7 +141,7 @@ const App = () => ( |
141 | 141 | Now we have something like below: |
142 | 142 |
|
143 | 143 | <React.StrictMode> |
144 | | - <Fixed style={{ outline: '1px solid black' }} height={400}> |
| 144 | + <Fixed style={{ outline: '1px solid black' }} className="container" height={400}> |
145 | 145 | <Top style={{ borderBottom: '1px dashed black', padding: 5 }} order={1} size={25} centerContent={CenterType.Vertical}> |
146 | 146 | Title |
147 | 147 | </Top> |
|
0 commit comments