@@ -4,9 +4,11 @@ import Link, { LinkProps } from "next/link";
4
4
import index from "../app/(docs)/docs/index" ;
5
5
import { DocsSidebarLink } from "./docs-sidebar-link" ;
6
6
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
+
8
10
return (
9
- < Link
11
+ < Component
10
12
className = { clsx (
11
13
"inline-flex items-center gap-3 text-base/8 text-gray-600 sm:text-sm/7 dark:text-gray-300" ,
12
14
"**:data-outline:stroke-gray-400 dark:**:data-outline:stroke-gray-500 **:[svg]:size-5 **:[svg]:sm:size-4" ,
@@ -39,7 +41,7 @@ function TopNav() {
39
41
</ TopNavLink >
40
42
</ li >
41
43
< li >
42
- < TopNavLink href = "https://tailwindui.com/components ?ref=sidebar" >
44
+ < TopNavLink href = "/plus/ui-blocks ?ref=sidebar" >
43
45
< svg viewBox = "0 0 16 16" fill = "none" >
44
46
< path data-highlight d = "M15.5 11.5V4.5L8 8.5L0.5 4.5V11.5L8 15.5L15.5 11.5Z" />
45
47
< path
@@ -51,7 +53,7 @@ function TopNav() {
51
53
</ TopNavLink >
52
54
</ li >
53
55
< li >
54
- < TopNavLink href = "https://tailwindui.com /templates?ref=sidebar" >
56
+ < TopNavLink href = "/plus /templates?ref=sidebar" >
55
57
< svg viewBox = "0 0 16 16" fill = "none" >
56
58
< path
57
59
data-highlight
@@ -65,6 +67,21 @@ function TopNav() {
65
67
Templates
66
68
</ TopNavLink >
67
69
</ 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 >
68
85
< li >
69
86
< TopNavLink href = "https://play.tailwindcss.com/" >
70
87
< svg viewBox = "0 0 16 16" fill = "none" >
0 commit comments