I'm working on customizing an Input component from antd. My goal is to keep the placeholder text constant, small, and positioned in the top left corner of the component.
So far, I've successfully moved the placeholder to the top left corner, but I'm having trouble keeping it a consistent size:
const MyInput = styled(Input)`
::placeholder {
font-size: 14px;
width: 200px;
position: absolute;
pointer-events: none;
left: 4px;
top: 0px;
}
height: 50px;
`;
<MyInput style={{ width: "50vw" }} placeholder={"name here"} />