diff --git a/src/ReactCodeInput.stories.js b/src/ReactCodeInput.stories.js index 8304fba..7b8fe3e 100644 --- a/src/ReactCodeInput.stories.js +++ b/src/ReactCodeInput.stories.js @@ -117,4 +117,16 @@ propVariantStories ) .add('disabled', () => - ); + ) + .add('reset', ResetForm); + +function ResetForm() { + const [value, setValue] = React.useState(null); + + return ( + + setValue(null)} value={value} /> + + + ) +}