From 061d7826bf21b412d71b54ed7dd82598c4af850f Mon Sep 17 00:00:00 2001 From: SohamPatel46 Date: Wed, 25 Dec 2024 15:26:06 +0530 Subject: [PATCH] Add skip-to-selected-block story --- .../stories/index.story.js | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 packages/block-editor/src/components/skip-to-selected-block/stories/index.story.js diff --git a/packages/block-editor/src/components/skip-to-selected-block/stories/index.story.js b/packages/block-editor/src/components/skip-to-selected-block/stories/index.story.js new file mode 100644 index 00000000000000..72dac414b11633 --- /dev/null +++ b/packages/block-editor/src/components/skip-to-selected-block/stories/index.story.js @@ -0,0 +1,37 @@ +/** + * Internal dependencies + */ +import SkipToSelectedBlock from '../'; + +const meta = { + title: 'BlockEditor/SkipToSelectedBlock', + component: SkipToSelectedBlock, + parameters: { + docs: { + canvas: { sourceState: 'shown' }, + description: { + component: + 'It provides a way for keyboard and assistive technologies users to jump back to the currently selected block.', + }, + }, + }, + argTypes: { + selectedBlockClientId: { + control: { type: 'string' }, + description: 'Reference ID of the currently selected block.', + table: { + type: { + summary: 'string', + }, + }, + }, + }, +}; + +export default meta; + +export const Default = { + render: function Template( { ...args } ) { + return ; + }, +};