Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skiano committed Mar 4, 2015
1 parent c2c5597 commit e899771
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A Bare bones slideshow component that handles transitions between slides and exp
#### node

``` jsx
npm install react-picture-show
npm install react-picture-show
```

## Usage
Expand All @@ -18,13 +18,13 @@ A Bare bones slideshow component that handles transitions between slides and exp

```jsx

<PictureShow>
<img src='http://...'/>
<img src='http://...'/>
<div>another thing</div>
<img src='http://...'/>
<img src='http://...'/>
</PictureShow>
<PictureShow>
<img src='http://...'/>
<img src='http://...'/>
<div>another thing</div>
<img src='http://...'/>
<img src='http://...'/>
</PictureShow>

```

Expand Down Expand Up @@ -57,11 +57,11 @@ enable | Acticate slideshow | no
Slides are the direct child components of a ``<PictureShow/>``. They are cloned with the following additional properties:

```jsx
{
width: Number, // the width of the mounted slideshow
height: Number, // the height of the mounted slideshow
pending: Boolean // whether the slide can be lazyloaded
}
{
width: Number, // the width of the mounted slideshow
height: Number, // the height of the mounted slideshow
pending: Boolean // whether the slide can be lazyloaded
}
```
By cloning the children with these props, you are free to create 'slide' components that react to them however you want. If the child already has one of these props it will be replaced (even for ```<img/>``` components)

Expand Down

0 comments on commit e899771

Please sign in to comment.