forked from TailGrids/tailwind-ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-elements.html
264 lines (264 loc) · 8.55 KB
/
form-elements.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form Elements | TailGrids</title>
<link
rel="shortcut icon"
href="assets/images/favicon.svg"
type="image/x-icon"
/>
<link rel="stylesheet" href="assets/css/tailwind.css" />
</head>
<body>
<!-- ====== Form Elements Section Start -->
<section class="pt-20 lg:pt-[120px] pb-10 lg:pb-20">
<div class="container">
<div class="flex flex-wrap -mx-4">
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Default Input
</label>
<input
type="text"
placeholder="Default Input"
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
/>
</div>
</div>
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Active Input
</label>
<input
type="text"
placeholder="Active Input"
class="
w-full
border-[1.5px] border-primary
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
/>
</div>
</div>
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Disabled label
</label>
<input
type="text"
placeholder="Disabled Input"
disabled
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
/>
</div>
</div>
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Default textarea
</label>
<textarea
rows="5"
placeholder="Default textarea"
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
></textarea>
</div>
</div>
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Active textarea
</label>
<textarea
rows="5"
placeholder="Active textarea"
class="
w-full
border-[1.5px] border-primary
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
></textarea>
</div>
</div>
<div class="w-full md:w-1/2 lg:w-1/3 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Disabled textarea
</label>
<textarea
rows="5"
placeholder="Disabled textarea"
disabled
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
py-3
px-5
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
"
></textarea>
</div>
</div>
<div class="w-full lg:w-5/12 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Default file input
</label>
<input
type="file"
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
font-medium
text-body-color
placeholder-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
cursor-pointer
file:bg-[#F5F7FD]
file:border-0
file:border-solid
file:border-r
file:border-collapse
file:border-form-stroke
file:py-3
file:px-5
file:mr-5
file:text-body-color
file:cursor-pointer
file:hover:bg-primary
file:hover:bg-opacity-10
"
/>
</div>
</div>
<div class="w-full lg:w-5/12 px-4">
<div class="mb-12">
<label for="" class="font-medium text-base text-black block mb-3">
Default Select
</label>
<div class="relative">
<select
class="
w-full
border-[1.5px] border-form-stroke
rounded-lg
py-3
px-5
font-medium
text-body-color
outline-none
focus:border-primary
active:border-primary
transition
disabled:bg-[#F5F7FD] disabled:cursor-default
appearance-none
"
>
<option value="">Option</option>
<option value="">Option</option>
<option value="">Option</option>
</select>
<span
class="
absolute
right-4
top-1/2
-translate-y-1/2
mt-[-2px]
w-[10px]
h-[10px]
border-r-2 border-b-2 border-body-color
rotate-45
"
>
</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ====== Form Elements Section End -->
</body>
</html>