Skip to content

Commit 05832a6

Browse files
committed
Update Plus links in docs nav
1 parent e18067a commit 05832a6

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/components/docs-sidebar.tsx

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import Link, { LinkProps } from "next/link";
44
import index from "../app/(docs)/docs/index";
55
import { DocsSidebarLink } from "./docs-sidebar-link";
66

7-
export function TopNavLink(props: React.PropsWithChildren<LinkProps>) {
7+
export function TopNavLink(props: { href: string } & React.ComponentPropsWithoutRef<"a">) {
8+
const Component = props.href.startsWith("/plus") ? "a" : Link;
9+
810
return (
9-
<Link
11+
<Component
1012
className={clsx(
1113
"inline-flex items-center gap-3 text-base/8 text-gray-600 sm:text-sm/7 dark:text-gray-300",
1214
"**:data-outline:stroke-gray-400 dark:**:data-outline:stroke-gray-500 **:[svg]:size-5 **:[svg]:sm:size-4",
@@ -39,7 +41,7 @@ function TopNav() {
3941
</TopNavLink>
4042
</li>
4143
<li>
42-
<TopNavLink href="https://tailwindui.com/components?ref=sidebar">
44+
<TopNavLink href="/plus/ui-blocks?ref=sidebar">
4345
<svg viewBox="0 0 16 16" fill="none">
4446
<path data-highlight d="M15.5 11.5V4.5L8 8.5L0.5 4.5V11.5L8 15.5L15.5 11.5Z" />
4547
<path
@@ -51,7 +53,7 @@ function TopNav() {
5153
</TopNavLink>
5254
</li>
5355
<li>
54-
<TopNavLink href="https://tailwindui.com/templates?ref=sidebar">
56+
<TopNavLink href="/plus/templates?ref=sidebar">
5557
<svg viewBox="0 0 16 16" fill="none">
5658
<path
5759
data-highlight
@@ -65,6 +67,21 @@ function TopNav() {
6567
Templates
6668
</TopNavLink>
6769
</li>
70+
<li>
71+
<TopNavLink href="/plus/ui-kit?ref=sidebar">
72+
<svg viewBox="0 0 16 16" fill="none">
73+
<path
74+
data-highlight
75+
d="M12.5 1.5H3.5C2.39543 1.5 1.5 2.39543 1.5 3.5V4.5V12.5C1.5 13.6046 2.39543 14.5 3.5 14.5H5.5V4.5H14.5V3.5C14.5 2.39543 13.6046 1.5 12.5 1.5Z"
76+
/>
77+
<path
78+
data-outline
79+
d="M5.5 4.5H14.5M5.5 4.5H1.5M5.5 4.5V14.5M14.5 4.5V3.5C14.5 2.39543 13.6046 1.5 12.5 1.5H3.5C2.39543 1.5 1.5 2.39543 1.5 3.5V4.5M14.5 4.5V12.5C14.5 13.6046 13.6046 14.5 12.5 14.5H5.5M1.5 4.5V12.5C1.5 13.6046 2.39543 14.5 3.5 14.5H5.5"
80+
/>
81+
</svg>
82+
UI Kit
83+
</TopNavLink>
84+
</li>
6885
<li>
6986
<TopNavLink href="https://play.tailwindcss.com/">
7087
<svg viewBox="0 0 16 16" fill="none">

0 commit comments

Comments
 (0)