Looking for a way to set the icon with or without a pseudo element for Ant Design, I've tried a method that isn't working.
.ant-picker-input > input::before {
content: url('../../public/assets/calendar.svg') !important;
margin-right: 8px !important;
}
.ant-picker-input > input::placeholder {
color: black !important;
font-family: poppins;
font-size: medium;
}
https://i.sstatic.net/ELDE8.png This is the expected style.
https://i.sstatic.net/cFvt4.png Currently, this is the appearance of the datepicker.
Currently, the border is disabled and only the placeholder is visible. The default suffix icon is also disabled, as I require a prefix icon instead.
<Space direction="vertical" size={12} className="grid-cols-1">
<DatePicker format="YYYY-MM-DD HH:mm:ss" disabledDate={disabledDate} disabledTime={disabledDateTime} placeholder="Schedule a Meet" showTime={{ defaultValue: dayjs( "00:00:00", "HH:mm:ss") }} suffixIcon={null} />
<Upload {...props}>
<Button icon={<UploadOutlined />}>Click to Upload</Button>
</Upload>
</Space>