Ambert
12/08/2025, 11:48 AMDean Leigh
12/08/2025, 2:21 PMAmbert
12/08/2025, 2:46 PMAmbert
12/08/2025, 2:46 PMAmbert
12/08/2025, 2:47 PMhtml
<div>
<h2>Icon Picker</h2>
<strong>Model.Icon.Name -> Returns the icon name</strong> <br/>@Model.Icon.Name<br/><br/>
<strong>Model.Icon.GetFullPath() -> Returns the path to the sprite, including the fragment identifier (e.g. "/icons.svg#icon-name")-> </strong><br/> @Model.Icon.GetHref()<br/><br/>
<strong>Model.Icon.ToSvgTag() -> Returns the full SVG markup tag for this icon.</strong><br/> @Model.Icon.ToSvgTag()<br/><br/>
<strong>Example usage:</strong><br/>
<svg aria-hidden="true">
<use xlink:href="@Model.Icon.GetHref()" />
</svg>
<svg><use href="@Model.Icon.GetHref()" /></svg>
@Html.Raw(Model.Icon.ToSvgTag())
</div>Ambert
12/08/2025, 2:49 PMhtml
<svg aria-hidden="true">
<use xlink:href="/svgsprites/example-sprite.svg#address-card-svgrepo-com"></use>
</svg>Ambert
12/08/2025, 2:49 PMAmbert
12/08/2025, 7:44 PMAmbert
12/08/2025, 7:44 PM