Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Remove key from addon render docs #25530

Merged
merged 4 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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