|
| 1 | +<html lang="en"> |
| 2 | + <head> |
| 3 | + <meta charset="UTF-8" /> |
| 4 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 5 | + <title>@tailwindcss/forms Kitchen Sink</title> |
| 6 | + |
| 7 | + <link rel="stylesheet" href="https://unpkg.com/tailwindcss@next/dist/base.min.css" /> |
| 8 | + <link rel="stylesheet" href="/dist/forms.min.css" /> |
| 9 | + <link rel="stylesheet" href="https://unpkg.com/tailwindcss@next/dist/components.min.css" /> |
| 10 | + <link rel="stylesheet" href="https://unpkg.com/tailwindcss@next/dist/utilities.min.css" /> |
| 11 | + </head> |
| 12 | + <body> |
| 13 | + <div class="antialiased text-gray-900 px-6"> |
| 14 | + <div class="max-w-2xl mx-auto py-12"> |
| 15 | + <div class="flex flex-wrap -mx-6"> |
| 16 | + <div class="w-1/2 px-6"> |
| 17 | + <label class="block"> |
| 18 | + <span class="text-gray-700">Input (no type)</span> |
| 19 | + <input class=" mt-1 block w-full" placeholder=" [email protected]" /> |
| 20 | + </label> |
| 21 | + <label class="block mt-4"> |
| 22 | + <span class="text-gray-700">Input (text)</span> |
| 23 | + <input type=" text" class=" mt-1 block w-full" placeholder=" [email protected]" /> |
| 24 | + </label> |
| 25 | + <label class="block mt-4"> |
| 26 | + <span class="text-gray-700">Input (email)</span> |
| 27 | + <input |
| 28 | + type="email" |
| 29 | + class="mt-1 block w-full rounded-none border-0 border-b focus:ring-0 focus:border-black" |
| 30 | + |
| 31 | + /> |
| 32 | + </label> |
| 33 | + <label class="block mt-4"> |
| 34 | + <span class="text-gray-700">Input (range)</span> |
| 35 | + <input type="range" class="mt-1 block w-full" /> |
| 36 | + </label> |
| 37 | + <label class="block mt-4"> |
| 38 | + <span class="text-gray-700">Input (date)</span> |
| 39 | + <input type="date" class="mt-1 block w-full" /> |
| 40 | + </label> |
| 41 | + <label class="block mt-4"> |
| 42 | + <span class="text-gray-700">Input (datetime-local)</span> |
| 43 | + <input type="datetime-local" class="mt-1 block w-full" /> |
| 44 | + </label> |
| 45 | + <label class="block mt-4"> |
| 46 | + <span class="text-gray-700">Input (month)</span> |
| 47 | + <input type="month" class="mt-1 block w-full" /> |
| 48 | + </label> |
| 49 | + <label class="block mt-4"> |
| 50 | + <span class="text-gray-700">Input (number)</span> |
| 51 | + <input type="number" class="mt-1 block w-full" /> |
| 52 | + </label> |
| 53 | + <label class="block mt-4"> |
| 54 | + <span class="text-gray-700">Input (search)</span> |
| 55 | + <input type="search" class="mt-1 block w-full" /> |
| 56 | + </label> |
| 57 | + <label class="block mt-4"> |
| 58 | + <span class="text-gray-700">Input (time)</span> |
| 59 | + <input type="time" class="mt-1 block w-full" /> |
| 60 | + </label> |
| 61 | + <label class="block mt-4"> |
| 62 | + <span class="text-gray-700">Input (week)</span> |
| 63 | + <input type="week" class="mt-1 block w-full" /> |
| 64 | + </label> |
| 65 | + <label class="block mt-4"> |
| 66 | + <span class="text-gray-700">Input (email, multiple)</span> |
| 67 | + <input |
| 68 | + type="email" |
| 69 | + multiple |
| 70 | + class="mt-1 block w-full" |
| 71 | + |
| 72 | + /> |
| 73 | + </label> |
| 74 | + <label class="block mt-4"> |
| 75 | + <span class="text-gray-700">Input (file)</span> |
| 76 | + <input type="file" class="mt-1 block w-full" /> |
| 77 | + </label> |
| 78 | + <label class="block mt-4"> |
| 79 | + <span class="text-gray-700">Input (file)</span> |
| 80 | + <input type="file" multiple class="mt-1 block w-full" /> |
| 81 | + </label> |
| 82 | + <label class="block mt-4"> |
| 83 | + <span class="text-gray-700">Textarea</span> |
| 84 | + <textarea |
| 85 | + class="mt-1 block w-full h-24" |
| 86 | + rows="3" |
| 87 | + placeholder="Enter some long form content." |
| 88 | + > |
| 89 | + </textarea> |
| 90 | + </label> |
| 91 | + <div class="block mt-4"> |
| 92 | + <span class="text-gray-700">Checkboxes</span> |
| 93 | + <div class="mt-2"> |
| 94 | + <div> |
| 95 | + <label class="inline-flex items-center"> |
| 96 | + <input type="checkbox" checked /> |
| 97 | + <span class="ml-2">Option 1</span> |
| 98 | + </label> |
| 99 | + </div> |
| 100 | + <div> |
| 101 | + <label class="inline-flex items-center"> |
| 102 | + <input type="checkbox" /> |
| 103 | + <span class="ml-2">Option 2</span> |
| 104 | + </label> |
| 105 | + </div> |
| 106 | + <div> |
| 107 | + <label class="inline-flex items-center"> |
| 108 | + <input type="checkbox" /> |
| 109 | + <span class="ml-2">Option 3</span> |
| 110 | + </label> |
| 111 | + </div> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + <div class="w-1/2 px-2"> |
| 116 | + <label class="block"> |
| 117 | + <span class="text-gray-700">Select</span> |
| 118 | + <select class="block w-full mt-1"> |
| 119 | + <option>Option 1</option> |
| 120 | + <option>Option 2</option> |
| 121 | + </select> |
| 122 | + </label> |
| 123 | + <label class="block mt-4"> |
| 124 | + <span class="text-gray-700">Multiselect</span> |
| 125 | + <select class="block w-full h-24 mt-1" multiple=""> |
| 126 | + <option>Option 1</option> |
| 127 | + <option>Option 2</option> |
| 128 | + <option>Option 3</option> |
| 129 | + <option>Option 4</option> |
| 130 | + <option>Option 5</option> |
| 131 | + </select> |
| 132 | + </label> |
| 133 | + <div class="block mt-4"> |
| 134 | + <span class="text-gray-700">Radio Buttons</span> |
| 135 | + <div class="mt-2"> |
| 136 | + <div> |
| 137 | + <label class="inline-flex items-center"> |
| 138 | + <input type="radio" checked name="radio-direct" value="1" /> |
| 139 | + <span class="ml-2">Option 1</span> |
| 140 | + </label> |
| 141 | + </div> |
| 142 | + <div> |
| 143 | + <label class="inline-flex items-center"> |
| 144 | + <input type="radio" name="radio-direct" value="2" /> |
| 145 | + <span class="ml-2">Option 2</span> |
| 146 | + </label> |
| 147 | + </div> |
| 148 | + <div> |
| 149 | + <label class="inline-flex items-center"> |
| 150 | + <input type="radio" name="radio-direct" value="3" /> |
| 151 | + <span class="ml-2">Option 3</span> |
| 152 | + </label> |
| 153 | + </div> |
| 154 | + </div> |
| 155 | + </div> |
| 156 | + </div> |
| 157 | + </div> |
| 158 | + </div> |
| 159 | + </div> |
| 160 | + </body> |
| 161 | +</html> |
0 commit comments