@@ -28,6 +28,71 @@ Tailwind doesn't include pre-designed navigation components out of the box, but
2828### Responsive Header
2929
3030@component ('_ partials.code-sample')
31+ <div class =" mb-6 lg:hidden " >
32+ <p class =" text-sm text-grey-dark mb-1 " >Collapsed</p >
33+ <nav class =" flex items-center justify-between flex-wrap bg-teal p-6 " >
34+ <div class="flex items-center flex-no-shrink text-white mr-6">
35+ <svg class="fill-current h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
36+ <span class="font-semibold text-xl tracking-tight">Tailwind CSS</span>
37+ </div>
38+ <div class="block lg:hidden">
39+ <button class="flex items-center px-3 py-2 border rounded text-teal-lighter border-teal-light hover:text-white hover:border-white">
40+ <svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
41+ </button>
42+ </div>
43+ <div class="w-full hidden flex-grow lg:flex lg:items-center lg:w-auto">
44+ <div class="text-sm lg:flex-grow">
45+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
46+ Docs
47+ </a>
48+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
49+ Examples
50+ </a>
51+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white">
52+ Blog
53+ </a>
54+ </div>
55+ <div>
56+ <a href="#" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal hover:bg-white mt-4 lg:mt-0">Download</a>
57+ </div>
58+ </div>
59+ </nav >
60+ </div >
61+
62+ <div >
63+ <p class =" text-sm text-grey-dark mb-1 lg:hidden " >Expanded</p >
64+ <nav class =" flex items-center justify-between flex-wrap bg-teal p-6 " >
65+ <div class="flex items-center flex-no-shrink text-white mr-6">
66+ <svg class="fill-current h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
67+ <span class="font-semibold text-xl tracking-tight">Tailwind CSS</span>
68+ </div>
69+ <div class="block lg:hidden">
70+ <button class="flex items-center px-3 py-2 border rounded text-teal-lighter border-teal-light hover:text-white hover:border-white">
71+ <svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
72+ </button>
73+ </div>
74+ <div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
75+ <div class="text-sm lg:flex-grow">
76+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
77+ Docs
78+ </a>
79+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
80+ Examples
81+ </a>
82+ <a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white">
83+ Blog
84+ </a>
85+ </div>
86+ <div>
87+ <a href="#" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal hover:bg-white mt-4 lg:mt-0">Download</a>
88+ </div>
89+ </div>
90+ </nav >
91+ </div >
92+
93+
94+
95+ @slot ('code')
3196<nav class =" flex items-center justify-between flex-wrap bg-teal p-6 " >
3297 <div class =" flex items-center flex-no-shrink text-white mr-6 " >
3398 <svg class="fill-current h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
@@ -55,6 +120,7 @@ Tailwind doesn't include pre-designed navigation components out of the box, but
55120 </div>
56121 </div >
57122</nav >
123+ @endslot
58124@endcomponent
59125
60126### Tabs
0 commit comments