|
11 | 11 | </head>
|
12 | 12 | <body>
|
13 | 13 | <div class="antialiased text-gray-900 px-6">
|
14 |
| - <div class="max-w-2xl mx-auto py-12"> |
15 |
| - <div class="grid grid-cols-2 gap-6 items-start"> |
| 14 | + <div class="max-w-4xl mx-auto py-12"> |
| 15 | + <h2 class="text-2xl font-bold">Styled</h2> |
| 16 | + <p class="mt-2 text-lg text-gray-500"> |
| 17 | + These are form elements this plugin styles by default. |
| 18 | + </p> |
| 19 | + <div class="mt-8 grid grid-cols-2 gap-6 items-start"> |
16 | 20 | <div class="grid grid-cols-1 gap-6">
|
17 | 21 | <label class="block">
|
18 | 22 | <span class="text-gray-700">Input (text)</span>
|
|
23 | 27 | <input type="email" class="mt-1 block w-full" placeholder="john@example.com" />
|
24 | 28 | </label>
|
25 | 29 | <label class="block">
|
26 |
| - <span class="text-gray-700">Input (range)</span> |
27 |
| - <input type="range" class="mt-1 block w-full" /> |
| 30 | + <span class="text-gray-700">Input (email, multiple)</span> |
| 31 | + <input |
| 32 | + type="email" |
| 33 | + multiple |
| 34 | + class="mt-1 block w-full" |
| 35 | + placeholder="john@example.com" |
| 36 | + /> |
| 37 | + </label> |
| 38 | + <label class="block"> |
| 39 | + <span class="text-gray-700">Input (password)</span> |
| 40 | + <input type="password" class="mt-1 block w-full" placeholder="john@example.com" /> |
28 | 41 | </label>
|
29 | 42 | <label class="block">
|
30 | 43 | <span class="text-gray-700">Input (date)</span>
|
|
54 | 67 | <span class="text-gray-700">Input (week)</span>
|
55 | 68 | <input type="week" class="mt-1 block w-full" />
|
56 | 69 | </label>
|
| 70 | + </div> |
| 71 | + <div class="grid grid-cols-1 gap-6"> |
57 | 72 | <label class="block">
|
58 |
| - <span class="text-gray-700">Input (email, multiple)</span> |
59 |
| - <input |
60 |
| - type="email" |
61 |
| - multiple |
62 |
| - class="mt-1 block w-full" |
63 |
| - placeholder="john@example.com" |
64 |
| - /> |
| 73 | + <span class="text-gray-700">Input (tel)</span> |
| 74 | + <input type="tel" multiple class="mt-1 block w-full" placeholder="john@example.com" /> |
65 | 75 | </label>
|
66 | 76 | <label class="block">
|
67 |
| - <span class="text-gray-700">Input (file)</span> |
68 |
| - <input type="file" class="mt-1 block w-full" /> |
| 77 | + <span class="text-gray-700">Input (url)</span> |
| 78 | + <input type="url" multiple class="mt-1 block w-full" placeholder="john@example.com" /> |
69 | 79 | </label>
|
70 | 80 | <label class="block">
|
71 |
| - <span class="text-gray-700">Input (file)</span> |
72 |
| - <input type="file" multiple class="mt-1 block w-full" /> |
| 81 | + <span class="text-gray-700">Select</span> |
| 82 | + <select class="block w-full mt-1"> |
| 83 | + <option>Option 1</option> |
| 84 | + <option>Option 2</option> |
| 85 | + </select> |
| 86 | + </label> |
| 87 | + <label class="block"> |
| 88 | + <span class="text-gray-700">Select (multiple)</span> |
| 89 | + <select class="block w-full h-24 mt-1" multiple=""> |
| 90 | + <option>Option 1</option> |
| 91 | + <option>Option 2</option> |
| 92 | + <option>Option 3</option> |
| 93 | + <option>Option 4</option> |
| 94 | + <option>Option 5</option> |
| 95 | + </select> |
73 | 96 | </label>
|
74 | 97 | <label class="block">
|
75 | 98 | <span class="text-gray-700">Textarea</span>
|
|
103 | 126 | </div>
|
104 | 127 | </div>
|
105 | 128 | </div>
|
106 |
| - </div> |
107 |
| - <div class="grid grid-cols-1 gap-6"> |
108 |
| - <label class="block"> |
109 |
| - <span class="text-gray-700">Select</span> |
110 |
| - <select class="block w-full mt-1"> |
111 |
| - <option>Option 1</option> |
112 |
| - <option>Option 2</option> |
113 |
| - </select> |
114 |
| - </label> |
115 |
| - <label class="block"> |
116 |
| - <span class="text-gray-700">Multiselect</span> |
117 |
| - <select class="block w-full h-24 mt-1" multiple=""> |
118 |
| - <option>Option 1</option> |
119 |
| - <option>Option 2</option> |
120 |
| - <option>Option 3</option> |
121 |
| - <option>Option 4</option> |
122 |
| - <option>Option 5</option> |
123 |
| - </select> |
124 |
| - </label> |
125 | 129 | <div class="block">
|
126 | 130 | <span class="text-gray-700">Radio Buttons</span>
|
127 | 131 | <div class="mt-2">
|
|
148 | 152 | </div>
|
149 | 153 | </div>
|
150 | 154 | </div>
|
| 155 | + <div class="max-w-4xl mx-auto py-12"> |
| 156 | + <h2 class="text-2xl font-bold">Unstyled</h2> |
| 157 | + <p class="mt-2 text-lg text-gray-500"> |
| 158 | + These are form elements we don't handle (yet?), but we use this to make sure we haven't |
| 159 | + accidentally styled them by mistake. |
| 160 | + </p> |
| 161 | + <div class="mt-8 grid grid-cols-2 gap-6 items-start"> |
| 162 | + <div class="grid grid-cols-1 gap-6"> |
| 163 | + <label class="block"> |
| 164 | + <span class="text-gray-700">Input (range)</span> |
| 165 | + <input type="range" class="mt-1 block w-full" /> |
| 166 | + </label> |
| 167 | + <label class="block"> |
| 168 | + <span class="text-gray-700">Input (color)</span> |
| 169 | + <input type="color" class="mt-1 block w-full" /> |
| 170 | + </label> |
| 171 | + <label class="block"> |
| 172 | + <span class="text-gray-700">Input (file)</span> |
| 173 | + <input type="file" class="mt-1 block w-full" /> |
| 174 | + </label> |
| 175 | + <label class="block"> |
| 176 | + <span class="text-gray-700">Input (file, multiple)</span> |
| 177 | + <input type="file" multiple class="mt-1 block w-full" /> |
| 178 | + </label> |
| 179 | + </div> |
| 180 | + </div> |
| 181 | + </div> |
151 | 182 | </div>
|
152 | 183 | </body>
|
153 | 184 | </html>
|
0 commit comments