<!--
  Copyright (c) 2019, salesforce.com, inc.
  All rights reserved.
  SPDX-License-Identifier: MIT
  For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
 -->

<template>
    <c-primitive-icon
        icon-name={state.iconName}
        size={size}
        variant={variant}
        src={state.src}
    >
    </c-primitive-icon>
    <span if:true={alternativeText} class="slds-assistive-text"
        >{alternativeText}</span
    >
</template>
