Currently, I have an input field and a datepicker displayed in a row. However, I need to show an icon inside the input box instead.
Here is my code:
<div class="mb-2" style=" float: left;" class="example-full-width" class="col-6">
<tc-form-label class="mb-1">Start Date</tc-form-label>
<div style="display: inline-flex;align-items: baseline; box-sizing: border-box;"> <input
placeholder="Select Date" matInput [matDatepicker]="picker" [readonly]="formCallId == '3'"
formControlName="startDate"
style="border-radius: 20px; background-color: #EBEBEB; height: 2.75rem; border: 2px solid #EBEBEB; outline:none; text-indent: 1rem; font-size: 1rem; width: 8rem;">
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</div>
</div>
This is how it looks currently:
https://i.sstatic.net/TJIIM.png
The goal is to place the icon inside the input boxes.