fix(storybook): add required handler props and fix TypeScript errors in component stories (#27187)
This commit is contained in:
@@ -23,6 +23,10 @@ const meta = {
|
||||
control: 'text',
|
||||
description: 'Textarea value',
|
||||
},
|
||||
onChange: {
|
||||
action: 'changed',
|
||||
description: 'Change handler',
|
||||
},
|
||||
minHeight: {
|
||||
control: 'number',
|
||||
description: 'Minimum height in pixels',
|
||||
@@ -44,6 +48,11 @@ const meta = {
|
||||
description: 'Wrapper CSS classes',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
onChange: (e) => {
|
||||
console.log('Text changed:', e.target.value)
|
||||
},
|
||||
},
|
||||
} satisfies Meta<typeof AutoHeightTextarea>
|
||||
|
||||
export default meta
|
||||
|
||||
Reference in New Issue
Block a user