Skip to content
Advertisement

Make the input and button on the same line

I’m making a todo list app using react and chakra ui.

I want to make the input and the button on the same line.

This is what i get: photo

I want to make something like this: photo

My Code:

App.js:

JavaScript

Todo.js:

JavaScript

Advertisement

Answer

removing the margin top from input should fix it:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement