diff --git a/README.md b/README.md index 044ded5bd..97722c7e4 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ Here `stories` is an array of story objects, which can be of various types as de | `defaultInterval` | Number | 1200 | Milliseconds duration for which a story persists | | `loader` | Component | Ripple loader | A loader component as a fallback until image loads from url | | `header` | Component | Default header as in demo | A header component which sits at the top of each story. It receives the `header` object from the `story` object. Data for header to be sent with each story object. | -| `width` | Number | 360 | Width of the component in pixels | -| `height` | Number | 640 | Height of the component in pixels | +| `width` | Number/String | 360 | Width of the component, e.g. 600 or '100vw' or 'inherit' | +| `height` | Number/String | 640 | Height of the component, e.g. 1000 or '100%' or 'inherit' | | `storyStyles` | Object | none | Override the default story styles mentioned below. | | `loop` | Boolean | false | The last story loop to the first one and restart the stories. | | **New props** | ⭐️ | ⭐️ | ⭐️ | diff --git a/example/src/App.js b/example/src/App.js index 18ca4659f..352b5bcc1 100644 --- a/example/src/App.js +++ b/example/src/App.js @@ -59,7 +59,15 @@ class App extends React.Component {
Know more about me here: mohitkarekar.com