Skip to content

Commit 4378de6

Browse files
author
ben
committed
Updated options to include theme prop
1 parent 239621f commit 4378de6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ showImageCount | bool | true | Optional. Display imag
106106
onClickImage | func | onClickImage | Optional. Function to execute when lightbox image clicked. Overrides internal implementation of onClickImage.
107107
onClickPrev | func | onClickPrev | Optional. Function to execute when lightbox left arrow clicked. Overrides internal implementation of onClickPrev.
108108
onClickNext | func | onClickNext | Optional. Function to execute when lightbox right arrow clicked. Overrides internal implementation of onClickNext.
109+
theme | object | undefined | Optional. Pass through styles to theme each component; `arrow`, `container`, etc.
109110
lightboxWidth | number | 1024 | Optional. Maximum width of the lightbox carousel; defaults to 1024px
110111

111112

@@ -138,7 +139,7 @@ React Grid Gallery is free to use for personal and commercial projects under the
138139

139140
* [ValYouW](https://github.com/ValYouW) for lightboxWillOpen and lightBoxWillClose functionality [PR 20](https://github.com/benhowell/react-grid-gallery/pull/20) and customOverlay option: [PR 22](https://github.com/benhowell/react-grid-gallery/pull/22).
140141

141-
142+
* [danalloway](https://github.com/danalloway) for theme pass-through prop [PR 27](https://github.com/benhowell/react-grid-gallery/pull/27)
142143

143144

144145

examples/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ <h2><a id="user-content-lightbox-options" class="anchor" href="#lightbox-options
308308
<td align="left">Optional. Function to execute when lightbox right arrow clicked. Overrides internal implementation of onClickNext.</td>
309309
</tr>
310310
<tr>
311+
<td align="left">theme</td>
312+
<td align="left">object</td>
313+
<td align="left">undefined</td>
314+
<td align="left">Optional. Pass through styles to theme each component; <code>arrow</code>, <code>container</code>, etc.</td>
315+
</tr>
316+
<tr>
311317
<td align="left">lightboxWidth</td>
312318
<td align="left">number</td>
313319
<td align="left">1024</td>
@@ -349,6 +355,9 @@ <h3>
349355

350356
<li><p><a href="https://github.com/ValYouW">ValYouW</a> for lightboxWillOpen and lightBoxWillClose functionality: <a href="https://github.com/benhowell/react-grid-gallery/pull/20">PR 20</a> and customOverlay option: <a href="https://github.com/benhowell/react-grid-gallery/pull/22">PR 22</a>.</p></li>
351357

358+
<li><p><a href="https://github.com/danalloway">danalloway</a> for theme pass-through prop <a href="https://github.com/benhowell/react-grid-gallery/pull/27">PR 27</a>.</p></li>
359+
360+
352361
<li><p>Demo stock photos:</p>
353362

354363
<ul>

0 commit comments

Comments
 (0)