How to add local image inside Sidenav Logo


Topic: How to add local image inside Sidenav Logo

fe_developer pro premium asked 10 months ago

Expected behavior It should show local image as Logon for Sidenav. Actual behavior It shows broken link at the given point. Resources (screenshots, code snippets etc.) enter image description here


Mikołaj Smoleński staff answered 10 months ago

To add local image please use require function.

Example:

:src="require('<path-to-img>')"

Best regards


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Vue
  • MDB Version: 6.7.0
  • Device: laptop
  • Browser: Chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No
Tags