From f76c5ad21cac7f6b5a31db2f945295648b75524b Mon Sep 17 00:00:00 2001 From: Ronald Rey Date: Tue, 9 Jan 2024 18:28:52 -0400 Subject: [PATCH 1/2] Remoe `key` from addon render docs See https://github.com/storybookjs/storybook/pull/23792 --- docs/addons/addons-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/addons/addons-api.md b/docs/addons/addons-api.md index 41daafbe8009..5a0464170067 100644 --- a/docs/addons/addons-api.md +++ b/docs/addons/addons-api.md @@ -41,7 +41,7 @@ The `add` method allows you to register the type of UI component associated with -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. From 8a7c1a393af12d0a63e09c7365019597ff0d9da4 Mon Sep 17 00:00:00 2001 From: Ronald Rey Date: Tue, 9 Jan 2024 18:29:52 -0400 Subject: [PATCH 2/2] mdx --- docs/snippets/common/storybook-addon-panel-initial.js.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/common/storybook-addon-panel-initial.js.mdx b/docs/snippets/common/storybook-addon-panel-initial.js.mdx index f097d264461a..9441938a0651 100644 --- a/docs/snippets/common/storybook-addon-panel-initial.js.mdx +++ b/docs/snippets/common/storybook-addon-panel-initial.js.mdx @@ -14,8 +14,8 @@ addons.register(ADDON_ID, (api) => { addons.add(PANEL_ID, { type: types.PANEL, title: 'My Addon', - render: ({ active, key }) => ( - + render: ({ active }) => ( +
Storybook addon panel
),