Permalink
Browse files

Updated README

  • Loading branch information...
1 parent d8562e0 commit 2a4f15fbd11e57f64e717b1aaa80d4c18b823f22 @okonet committed Aug 5, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -9,9 +9,11 @@ It is especially useful when you create components with dimensions that change o
time and you want to explicitely pass the container dimensions to the children. For example, SVG
visualization needs to be updated in order to fit into container.
+It uses [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect) and passes values for all `top`, `right`, `bottom`, `left`, `width`, `height` CSs attributes down the tree.
+
## Usage
-* Wrap your existing components. Children component will recieve `width` and `height` as props.
+* Wrap your existing components. Children component will recieve `top`, `right`, `bottom`, `left`, `width`, `height` as props.
```jsx
<ContainerDimensions>

0 comments on commit 2a4f15f

Please sign in to comment.