Answers for "how to change an input component color on focus"

1

how to change an input component color on focus

const StringInput = styled.input`
  border: 1px solid black;
  &:focus {
    outline: none;
    border-color: red;
  }
`;

const App = () => {
  return <StringInput />;
};
Posted by: Guest on March-17-2022

Code answers related to "how to change an input component color on focus"

Browse Popular Code Answers by Language