diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-09-24 23:24:47 +0200 |
commit | fab88bb47e71ad47c928198ddbf7a4d0527e81bb (patch) | |
tree | d218193c775e125e0043d21ee216eed531f01b1b /docs | |
parent | fa7cf3a65f7a19b2870e6d92c2e110e2356189ae (diff) | |
download | gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.zip gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.gz gitbook-fab88bb47e71ad47c928198ddbf7a4d0527e81bb.tar.bz2 |
Add flex box components
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/components.md | 11 |
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> +``` |