feat(password): add auto focus on password (#159)

* feat: add auto focus on password

* refactor(Password): use native autofocus prop

---------

Co-authored-by: MadDogOwner <xiaoran@xrgzs.top>
This commit is contained in:
ILoveScratch
2025-08-08 19:51:49 +08:00
committed by GitHub
parent 93c6e000fc
commit e2bd942ffc

View File

@@ -34,6 +34,7 @@ const Password = (props: PasswordProps) => {
>
<Heading>{props.title}</Heading>
<Input
autofocus={true}
type="password"
value={props.password()}
background={useColorModeValue("$neutral3", "$neutral2")()}