summaryrefslogtreecommitdiffstats
path: root/docs/api
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/components.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api/components.md b/docs/api/components.md
index 64185a2..6f7be53 100644
--- a/docs/api/components.md
+++ b/docs/api/components.md
@@ -72,3 +72,14 @@ Same API as `InjectedComponentSet` but render the matching components in chain i
```
**Warning:** Children are discarded.
+
+#### `GitBook.FlexLayout` and `GitBook.FlexBox`
+
+A simple wrapper that provides a Flexbox layout with the given direction and style. Any additional props you set on the Flexbox are rendered.
+
+```js
+<GitBook.FlexLayout column>
+ <GitBook.FlexBox>First column</GitBook.FlexBox>
+ <GitBook.FlexBox>Second column</GitBook.FlexBox>
+</GitBook.FlexLayout>
+```