Skip to content

Commit c2f3f46

Browse files
committed
Set input to autofocus
1 parent fc0e729 commit c2f3f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function App() {
2727
<div className="flex items-center justify-center p-4 border-r border-r-gray-700">
2828
<span className="font-bold">@</span>
2929
</div>
30-
<input onChange={usernameInput} className="font-semibold w-full px-4 focus:outline-none" placeholder="Your Github username" type="text" />
30+
<input onChange={usernameInput} autoFocus className="font-semibold w-full px-4 focus:outline-none" placeholder="Your Github username" type="text" />
3131
</div>
3232
<div className="text-center mt-4">
3333
<button type="button" onClick={searchUser} disabled={isSearchDisabled} className="enabled:hover:cursor-pointer enabled:hover:bg-gray-600 enabled:hover:text-white transition border-1 rounded-sm px-4 py-2 font-semibold disabled:border-gray-200 disabled:text-gray-400 disabled:cursor-not-allowed">View Progress →</button>

0 commit comments

Comments
 (0)