#how do i make a <href> tag go to a component

15 messages · Page 1 of 1 (latest)

inner socketBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

rough night
#

ANCHOR LINKS

#

thats what its called

sharp nebula
#

Yeah just use <a>. <Link> from next/link also works, but it’s not necessary

rough night
#

putting the id in the href works???

#

i couldnt get it to work

sharp nebula
#

<div id="foo"> – can be div or any tags

Then

<a href="#foo">

Clicking that <a> will scroll to the div

rough night
#

let me test this

#

holu

#

p

rough night
#

holy shit it works

#

i couldnt get it to work cause i forgot the # before the id

#

tysm @sharp nebula

inner socketBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1214201413606047764 message)