Skip to content

Commit 1597871

Browse files
committed
feat: add autoFocus in stories
1 parent 58fa11e commit 1597871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414

1515
const Template: ComponentStory<typeof ReactInputVerificationCode> = (args) => (
1616
<ReactInputVerificationCode
17+
autoFocus
1718
onChange={(value) => console.log(value)}
1819
onCompleted={(value) => console.log(value)}
1920
{...args}
@@ -75,6 +76,6 @@ const CustomStylesContainer = styled.div`
7576

7677
export const CustomStyles = () => (
7778
<CustomStylesContainer>
78-
<ReactInputVerificationCode placeholder='' />
79+
<ReactInputVerificationCode autoFocus placeholder='' />
7980
</CustomStylesContainer>
8081
);

0 commit comments

Comments
 (0)