fuma-nama / fumadocs

The beautiful docs framework with Next.js. Alternative to Nextra
https://fumadocs.vercel.app
MIT License
1.92k stars 116 forks source link

[Feature Request] [Tab] Update URL hash when selecting tabs with "id" prop #1069

Closed nktnet1 closed 1 week ago

nktnet1 commented 1 week ago

What problem will this feature address?

It would be nice to have a more accessible way to copy the anchored URL for the tab component.

Describe the solution you'd like

An opt-in prop in <Tabs />, e.g. updateAnchor: boolean, where if true, will update the URL hash/fragment (#) based on the tab's id when it is clicked.

Describe alternatives you've considered