diff --git a/README.md b/README.md index 04e9a63..978b930 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ class App extends React.Component { | noImgDetails | boolean | false | to not render image detail (WxH) | false | | noFooter | boolean | false | to not render the entire footer | false | | changeable | boolean | true | wheather to show change button | false | +| customToolbar | (defaultToolbarConfigs: [ToolbarConfig](#ToolbarConfig)[]) => ToolbarConfig[] | - | customer toolbar | false | ### ImageDecorator @@ -76,6 +77,14 @@ class App extends React.Component { | alt | string | - | image description | false | | downloadUrl | string | - | image downlaod url | false | +### ToolbarConfig + +| props | type | default | description | required | +|-------------|--------------|---------|-----------------------------|----------| +| key | string | - | tool key | true | +| render | React.ReactNode | - | tool render | false | +| onClick | string | - | callback function when action is clicked | false | + ## Keyboard support - `Esc`: Close viewer.