Tabs URL Hash
- from @tealmac
Tabs whose active tab lives in location.hash, so links open the right tab, reload keeps it and Back steps through tabs, with the first render always on the first tab.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @tealmac/tabs-url-hashRegistry dependencies1
- tabs
Packages0
No npm packages are installed with it.
