From dd964a19bb4f7b96ed406b8bc92928d7e64a3d72 Mon Sep 17 00:00:00 2001 From: Sukhendu Sekhar Guria Date: Wed, 4 Dec 2024 12:56:20 +0530 Subject: [PATCH] Update control types --- .../block-heading-level-dropdown/stories/index.story.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-heading-level-dropdown/stories/index.story.js b/packages/block-editor/src/components/block-heading-level-dropdown/stories/index.story.js index c74d12274a138..726314e79f843 100644 --- a/packages/block-editor/src/components/block-heading-level-dropdown/stories/index.story.js +++ b/packages/block-editor/src/components/block-heading-level-dropdown/stories/index.story.js @@ -8,12 +8,12 @@ import { useState } from '@wordpress/element'; */ import HeadingLevelDropdown from '../'; -export default { +const meta = { title: 'BlockEditor/HeadingLevelDropdown', component: HeadingLevelDropdown, argTypes: { value: { - control: { type: 'number', min: 0, max: 6, step: 1 }, + control: { type: null }, description: 'The currently selected heading level.', }, options: { @@ -23,6 +23,7 @@ export default { }, onChange: { action: 'onChange', + control: { type: null }, description: 'Callback triggered when a new heading level is selected.', }, @@ -36,9 +37,12 @@ export default { ], }; +export default meta; + export const Default = { render: function Template( { onChange, ...args } ) { const [ value, setValue ] = useState( args.value ); + return (