const NavbarContainer = styled.div`
overflow-y: hidden;
width: 100%;
height: 15%;
position: fixed;
z-index: 1;
bottom: -0.7rem;
overflow-x: hidden;
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0.7) 30%,
rgba(0, 0, 0, 0.9) 40%,
rgba(0, 0, 0, 1) 70%
);
`;
how do i keep the navbar hidden bellow the keyboard when the keybaord appears?
Ideally I am looking for a solution using css or something that would be relativelly easy to do
Any help would be much appreciated!
I have thought on adding a piece of logc that would hide the element whenever user starts inputing anything, however it does not seem like an elegant solution more like me trying to ducttape a solution - i would probably use some sort of state variable and pass it to css if I decided to go this route.