Next.js Discord

Discord Forum

cannot use svg

Answered
Blood cockle posted this in #help-forum
Open in Discord
Blood cockleOP
i tried adding a svg logo to my website but it doesn't show
Answered by Blanc de Hotot
I'll show you an example:
Create "assets" folder.

See. They are just methods
View full answer

14 Replies

@Blood cockle i tried adding a svg logo to my website but it doesn't show
Blanc de Hotot
That's not how you do it. Just create react components of the svg's
Blood cockleOP
and is there a tutorial on how to do it
Blanc de Hotot
I'll show you an example:
Create "assets" folder.

See. They are just methods
Answer
Blood cockleOP
ohhh
thank you
Blanc de Hotot
Happy to help
@Blood cockle i tried adding a svg logo to my website but it doesn't show
If you want to use a <img> tag then use this with Logo.src as the source
Logo is an object, but src is the url to that logo file
Blood cockleOP
i got it to work as component
but it makes my navbar bigger 😭
i fixed it
do you have the source of the .svg file?
@aardani do you have the source of the .svg file?
Blood cockleOP
yeah i got it to work
nicee