Skip to content

Commit 61a47dd

Browse files
committed
Add v4 to v3 website version switcher
1 parent 175d281 commit 61a47dd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/components/VersionSwitcher.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ export function VersionSwitcher({ className }) {
2020
</svg>
2121
</Menu.Button>
2222
<Menu.Items className="absolute top-full mt-1 py-2 w-40 rounded-lg bg-white shadow ring-1 ring-slate-900/5 text-sm leading-6 font-semibold text-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:highlight-white/5">
23+
<Menu.Item>
24+
{({ active }) => (
25+
<a
26+
href="https://tailwindcss.com"
27+
className={clsx(
28+
'block px-3 py-1',
29+
active && 'bg-slate-50 text-slate-900 dark:bg-slate-600/30 dark:text-white'
30+
)}
31+
>
32+
v4
33+
</a>
34+
)}
35+
</Menu.Item>
2336
<Menu.Item disabled>
2437
<span className="flex items-center justify-between px-3 py-1 text-sky-500 dark:text-sky-400">
2538
{version}

0 commit comments

Comments
 (0)