So far I have found and tried three paths, but none of them is resulting in an icon being displayed.
I am using this code, provided by Salesforce:
<div class="slds-form-element">
<label class="slds-form-element__label" for="text-input-id-1">Input Label</label>
<div class="slds-form-element__control slds-input-has-icon slds-input-has-icon_right">
<svg class="slds-icon slds-input__icon slds-input__icon_right slds-icon-text-default" aria-hidden="true">
<use xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#search"></use>
</svg>
<input type="text" id="text-input-id-1" placeholder="Placeholder Text" class="slds-input" />
</div>
</div>
But it doesn't display any icon. With googling I found other paths:
- {!URLFOR($Resource.SLDS213, 'assets/icons/standard-sprite/svg/symbols.svg#search'}
- /resource/slds214/assets/icons/standard-sprite/svg/symbols.svg#search
I am doing this in a Spring '20 sandbox.