|
2 | 2 |
|
3 | 3 |  
|
4 | 4 |
|
5 |
| -An easy to understand and nestable layout system, React Spaces allow you to divide a page or container into anchored, scrollable and resizable spaces enabling you to build desktop/mobile type user interfaces in the browser. |
| 5 | +An easy to understand and nestable layout system, React Spaces allow you to divide a page or container into anchored, scrollable and resizable spaces enabling you to build desktop/mobile type user interfaces in the browser. |
6 | 6 |
|
7 | 7 | Rather than a library of visual UI components, Spaces are intended to be the reusable foundational blocks for laying out a UI which responds neatly to view port resizes leaving you to fill them with whatever components you want.
|
8 | 8 |
|
9 |
| -- No styling to achieve simple or complex layouts. |
10 |
| -- Spaces know how to behave in relation to each other and resize accordingly. |
11 |
| -- Spaces don't have any visual element to them (even padding or margins). You can fill them with whatever you want. |
| 9 | +- No styling to achieve simple or complex layouts. |
| 10 | +- Spaces know how to behave in relation to each other and resize accordingly. |
| 11 | +- Spaces don't have any visual element to them (even padding or margins). You can fill them with whatever you want. |
12 | 12 |
|
13 | 13 | **Version 0.2.0 release - read [release notes here](https://www.allaneagle.com/react-spaces/release-0.2.0).**
|
14 | 14 |
|
@@ -48,18 +48,20 @@ There are resizable versions of these components called **\<LeftResizable /\>**,
|
48 | 48 |
|
49 | 49 | A space which consumes any available area left in the parent container/space taking into account any anchored spaces on every side.
|
50 | 50 |
|
| 51 | +**\<Positioned /\>** |
| 52 | + |
| 53 | +A space which can be absolutely placed within a parent space either by top, left, width and height or by top, left, right and bottom. |
| 54 | + |
51 | 55 | **\<Layer /\>**
|
52 | 56 |
|
53 | 57 | Layers allow you to create layers within a parent space, for example:
|
54 | 58 |
|
55 | 59 | ```html
|
56 | 60 | <ViewPort>
|
57 |
| - <Layer zIndex="{0}"> |
58 |
| - <LeftResizable size="20%" /> // floating sidebar |
59 |
| - </Layer> |
60 |
| - <Layer zIndex="{1}"> |
61 |
| - <Fill /> |
62 |
| - </Layer> |
| 61 | + <Layer zIndex="{0}"> <LeftResizable size="20%" /> // floating sidebar </Layer> |
| 62 | + <Layer zIndex="{1}"> |
| 63 | + <Fill /> |
| 64 | + </Layer> |
63 | 65 | </ViewPort>
|
64 | 66 | ```
|
65 | 67 |
|
|
0 commit comments