Open History to see the last commit
1import * as React from 'react'
2import Link from 'next/link'
3import logoSrc from '../images/logo-light.svg'
4import { siteConfig } from 'siteConfig'
5import { Search } from './Search'
6β
7export const Nav = () => (
8 <div className="bg-white border-b border-gray-200">
9 <div className="container mx-auto">
10 <div className="flex flex-wrap items-center">
11 <div className="w-60 flex items-center h-16 pt-4 md:pt-0">
12 <Link href="/" as="/">
13 <a>
14 <span className="sr-only">Home</span>
15 <img src={logoSrc} alt="React Location" />
16 </a>
17 </Link>
18 </div>
19β
20 <div className="flex-grow hidden lg:block ml-8">
21 <Search />
22 </div>
23β
24 <div className="flex flex-grow items-center justify-between w-3/4 md:w-auto md:justify-end space-x-4 md:space-x-8 h-16">
25 <div className="flex space-x-4 md:space-x-8 text-sm md:text-base">
26 <div>
27 <Link href="/overview">
28 <a className="leading-6 font-medium">Docs</a>
29 </Link>
30 </div>
31 <div>
32 <Link href="/examples/basic">
33 <a className="leading-6 font-medium">Examples</a>
34 </Link>
35 </div>
36 <div>
37 <Link href="/docs/api">
38 <a className="leading-6 font-medium">API</a>
39 </Link>
40 </div>
41 <div>
42 <a href="https://tanstack.com" className="leading-6 font-medium">
43 TanStack
44 </a>
45 </div>
46 </div>
47 <div>
48 <a
49 href={siteConfig.repoUrl}
50 target="_blank"
51 rel="noopener noreferrer"
52 >
53 <span className="sr-only">GitHub</span>
54 <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
55 <path
56 fillRule="evenodd"
57 d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
58 clipRule="evenodd"
59 />
60 </svg>
61 </a>
62 </div>
63 </div>
64 </div>
65 </div>
66 </div>
67)