react-theatre
Unstable: Do not use in production
A React component which accepts one or more React elements and allows you to navigate them in a lightbox.
Example
var React = ;var Theatre = ; var Example = React; var App = React; var items = ;for var i = 0; i < 100; i++ items; React;
Required props
- entries
React.PropTypes.arrayOf(React.PropTypes.element)
- The only required property is an array of React elements that you want to render. - closeHandler
React.PropTypes.func
- The method to call when the user clicks on the close button.
Optional props
- showProgress
React.PropTypes.bool
- Whether or not to show the top progress bar. - openItemIndex
React.PropTypes.number
- The index of the entry that you wish to open initially.