using assets in props

Hi, I want to use images in a component but I want to use assets, example:
<!—component—>
<img :src=“iconSrc” />

<!—index—>
<component iconSrc=“~/icons/icon.svg” />
<!—component—>
<img :src=“iconSrc” />

<!—index—>
<component iconSrc=“~/icons/icon.svg” />
Doesn’t render the image correctly, so how can I use assets in a component?
1 Reply
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server