Skip to content

Commit

Permalink
[ui] allow node PropType for Panel heading instead of just string
Browse files Browse the repository at this point in the history
  • Loading branch information
edda committed Nov 1, 2022
1 parent 2fa742a commit a519656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/juno-ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "lib/index.js",
"source": "src/index.js",
"style": "lib/esm/styles.css",
"version": "0.8.2",
"version": "0.8.3",
"files": [
"src",
"lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const Panel = ({

Panel.propTypes = {
/** Pass a Panel heading/title. */
heading: PropTypes.string,
heading: PropTypes.node,
/** Pass open state */
opened: PropTypes.bool,
/** Pass whethe panel should be closeable via a close button or not. If false, the close button will not be rendered. The panel can still be closed by setting "opened" to false. */
Expand Down

0 comments on commit a519656

Please sign in to comment.