I am stuck at 1 place where SVG an USE are used. I got to 1 link Mentioned below which says : This method is deprecated. https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/
Is this saying SVG and USE are depriciated and we cant or we should use them . In that case what we can do ? How to get the desired lightning look and feel.?
Can someone give an example where we are using SVG & USE and getting same look and feel like Lightning. Please bear the pain to explain from all basic things to start. Like any Static resource is need etc etc ....
Like I tried to make a Path or a tree example . I copied code from :https://www.lightningdesignsystem.com/components/path/ But contains SVG and USE
Below code is my component and I used this Component on an application and seeing the preview I am not getting what I expected. Its not coming in correct UI. Only test I can see.
Failed to save undefined: No COMPONENT named markup://use found : [markup://NBLight:SLDS_EG_PATH_COMPONENT]: Source
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >
<div class="slds-path-coach">
<div class="slds-grid">
<div class="slds-tabs_path" role="application">
<ul class="slds-tabs_path__nav" role="listbox" aria-orientation="horizontal">
<li class="slds-tabs_path__item slds-is-complete slds-is-incomplete slds-is-current" role="presentation">
<a aria-selected="false" class="slds-tabs_path__link" href="javascript:void(0);" id="path-1" role="option" tabindex="-1">
<span class="slds-tabs_path__stage">
<c:svg class="slds-icon slds-icon_x-small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>
<span class="slds-assistive-text">Stage Complete</span>
</span>
<span class="slds-tabs_path__title">Contacted</span>
</a>
</li>
<li class="slds-tabs_path__item slds-is-complete" role="presentation">
<a aria-selected="false" class="slds-tabs_path__link" href="javascript:void(0);" id="path-2" role="option" tabindex="-1">
<span class="slds-tabs_path__stage">
<c:svg class="slds-icon slds-icon_x-small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>
<span class="slds-assistive-text">Stage Complete</span>
</span>
<span class="slds-tabs_path__title">Open</span>
</a>
</li>
<li class="slds-tabs_path__item slds-is-current" role="presentation">
<a aria-selected="true" class="slds-tabs_path__link" href="javascript:void(0);" id="path-3" role="option" tabindex="0">
<span class="slds-tabs_path__stage">
<c:svg class="slds-icon slds-icon_x-small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>
<span class="slds-assistive-text">Current Stage:</span>
</span>
<span class="slds-tabs_path__title">Unqualified</span>
</a>
</li>
<li class="slds-tabs_path__item slds-is-incomplete" role="presentation">
<a aria-selected="false" class="slds-tabs_path__link" href="javascript:void(0);" id="path-4" role="option" tabindex="-1">
<span class="slds-tabs_path__stage">
<c:svg class="slds-icon slds-icon_x-small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>
</span>
<span class="slds-tabs_path__title">Nurturing</span>
</a>
</li>
<li class="slds-tabs_path__item slds-is-incomplete" role="presentation">
<a aria-selected="false" class="slds-tabs_path__link" href="javascript:void(0);" id="path-5" role="option" tabindex="-1">
<span class="slds-tabs_path__stage">
<c:svg class="slds-icon slds-icon_x-small" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>
</span>
<span class="slds-tabs_path__title">Closed</span>
</a>
</li>
</ul>
</div>
<button class="slds-button slds-button_brand slds-path__mark-complete slds-no-flex slds-m-horizontal_small">
<c:svg class="slds-button__icon slds-button__icon_left" aria-hidden="true">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/assets/icons/utility-sprite/svg/symbols.svg#check"></use>
</c:svg>Mark Status as Complete</button>
</div>
</div>
< / aura:component >
But I am getting desired display. How can I get the desired look and feel?