Skip to content

Commit

Permalink
Add skip-to-selected-block story
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamPatel46 committed Dec 25, 2024
1 parent 7e15fad commit 061d782
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 <SkipToSelectedBlock { ...args } />;
},
};

0 comments on commit 061d782

Please sign in to comment.