diff --git a/docs/examples/PanelBasic.js b/docs/examples/PanelBasic.js index 7b94f28c10..ec5274251a 100644 --- a/docs/examples/PanelBasic.js +++ b/docs/examples/PanelBasic.js @@ -1,5 +1,9 @@ +function handleClick() { + alert('You have clicked on me'); +} + const panelInstance = ( - + Basic panel example ); diff --git a/docs/src/ComponentsPage.js b/docs/src/ComponentsPage.js index c3166eca4d..8820c68016 100644 --- a/docs/src/ComponentsPage.js +++ b/docs/src/ComponentsPage.js @@ -214,6 +214,7 @@ const ComponentsPage = React.createClass({

Basic example

By default, all the <Panel /> does is apply some basic border and padding to contain some content.

+

You can pass on any additional properties you need, e.g. a custom onClick handler, as it is shown in the example code. They all will apply to the wrapper div element.

Panel with heading