-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e15fad
commit 061d782
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
packages/block-editor/src/components/skip-to-selected-block/stories/index.story.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } />; | ||
}, | ||
}; |