Skip to content

Commit

Permalink
Merge pull request #25530 from reyronald/patch-2
Browse files Browse the repository at this point in the history
Docs: Remove `key`  from addon render docs
  • Loading branch information
jonniebigodes authored Jan 16, 2024
2 parents 6c1c4d7 + 1dbc19f commit 1915bbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/addons/addons-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The `add` method allows you to register the type of UI component associated with

<Callout variant="info">

The render function is called with `active` and `key`. The `active` value will be true when the panel is focused on the UI.
The render function is called with `active`. The `active` value will be true when the panel is focused on the UI.

</Callout>

Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/common/storybook-addon-panel-initial.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ addons.register(ADDON_ID, (api) => {
addons.add(PANEL_ID, {
type: types.PANEL,
title: 'My Addon',
render: ({ active, key }) => (
<AddonPanel active={active} key={key}>
render: ({ active }) => (
<AddonPanel active={active}>
<div> Storybook addon panel </div>
</AddonPanel>
),
Expand Down

0 comments on commit 1915bbc

Please sign in to comment.