|
15 | 15 | >Github</a
|
16 | 16 | >
|
17 | 17 | </p>
|
18 |
| - <div class="has-float-label"> |
| 18 | + <div class="float-label-container"> |
19 | 19 | <input
|
20 | 20 | type="text"
|
21 | 21 | id="name"
|
22 | 22 | autocomplete="off"
|
23 | 23 | placeholder="Name"
|
24 |
| - class=" |
25 |
| - control-with-float-label |
26 |
| - outline-none |
27 |
| - focus:shadow-outline |
28 |
| - border |
29 |
| - w-full |
30 |
| - px-1 |
31 |
| - " |
| 24 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
32 | 25 | />
|
33 |
| - <label for="name" class="is-float-label bg-white text-gray-500">Name</label> |
| 26 | + <label for="name" class="float-label-self bg-white text-gray-500">Name</label> |
34 | 27 | </div>
|
35 |
| - <div class="has-float-label text-base"> |
| 28 | + <div class="float-label-container text-base"> |
36 | 29 | <input
|
37 | 30 | type="text"
|
38 | 31 | id="Login"
|
39 | 32 | autocomplete="off"
|
40 | 33 | placeholder="Login"
|
41 |
| - class=" |
42 |
| - control-with-float-label |
43 |
| - outline-none |
44 |
| - focus:shadow-outline |
45 |
| - border |
46 |
| - w-full |
47 |
| - px-1 |
48 |
| - " |
| 34 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
49 | 35 | value=""
|
50 | 36 | />
|
51 |
| - <label for="Login" class="is-float-label-sticky bg-white text-gray-500" |
| 37 | + <label for="Login" class="float-label-sticky bg-white text-gray-500" |
52 | 38 | >Login (Always visible)</label
|
53 | 39 | >
|
54 | 40 | </div>
|
55 |
| - <div class="has-float-label text-lg"> |
| 41 | + <div class="float-label-container text-lg"> |
56 | 42 | <input
|
57 | 43 | type="text"
|
58 | 44 | id="Email"
|
59 | 45 | autocomplete="off"
|
60 | 46 | placeholder="Email"
|
61 | 47 |
|
62 |
| - class=" |
63 |
| - control-with-float-label |
64 |
| - outline-none |
65 |
| - focus:shadow-outline |
66 |
| - border |
67 |
| - w-full |
68 |
| - px-1 |
69 |
| - " |
| 48 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
70 | 49 | />
|
71 |
| - <label for="Email" class="is-float-label bg-white text-gray-500">Email</label> |
| 50 | + <label for="Email" class="float-label-self bg-white text-gray-500">Email</label> |
72 | 51 | </div>
|
73 | 52 |
|
74 |
| - <div class="has-float-label text-xl"> |
| 53 | + <div class="float-label-container text-xl"> |
75 | 54 | <input
|
76 | 55 | type="text"
|
77 | 56 | autocomplete="off"
|
78 | 57 | placeholder="Password"
|
79 | 58 | value="Password"
|
80 |
| - class=" |
81 |
| - control-with-float-label |
82 |
| - outline-none |
83 |
| - focus:shadow-outline |
84 |
| - border |
85 |
| - w-full |
86 |
| - px-1 |
87 |
| - " |
| 59 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
88 | 60 | />
|
89 |
| - <label for="Password" class="is-float-label bg-white text-gray-500">Password</label> |
| 61 | + <label for="Password" class="float-label-self bg-white text-gray-500" |
| 62 | + >Password</label |
| 63 | + > |
90 | 64 | </div>
|
91 | 65 |
|
92 |
| - <div class="has-float-label text-2xl"> |
| 66 | + <div class="float-label-container text-2xl"> |
93 | 67 | <input
|
94 | 68 | type="text"
|
95 | 69 | autocomplete="off"
|
96 | 70 | id="Job Title"
|
97 | 71 | placeholder="Job Title"
|
98 | 72 | value="Job Title"
|
99 |
| - class=" |
100 |
| - control-with-float-label |
101 |
| - outline-none |
102 |
| - focus:shadow-outline |
103 |
| - border |
104 |
| - w-full |
105 |
| - px-1 |
106 |
| - " |
| 73 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
107 | 74 | />
|
108 |
| - <label for="Job Title" class="is-float-label bg-white text-gray-500" |
| 75 | + <label for="Job Title" class="float-label-self bg-white text-gray-500" |
109 | 76 | >Job Title</label
|
110 | 77 | >
|
111 | 78 | </div>
|
112 | 79 |
|
113 |
| - <div class="has-float-label text-3xl"> |
| 80 | + <div class="float-label-container text-3xl"> |
114 | 81 | <input
|
115 | 82 | type="text"
|
116 | 83 | autocomplete="off"
|
117 | 84 | placeholder="Status"
|
118 | 85 | value="Status"
|
119 |
| - class=" |
120 |
| - control-with-float-label |
121 |
| - outline-none |
122 |
| - focus:shadow-outline |
123 |
| - border |
124 |
| - w-full |
125 |
| - px-1 |
126 |
| - " |
| 86 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
127 | 87 | />
|
128 |
| - <label for="Status" class="is-float-label bg-white text-gray-500">Status</label> |
| 88 | + <label for="Status" class="float-label-self bg-white text-gray-500">Status</label> |
129 | 89 | </div>
|
130 | 90 |
|
131 |
| - <div class="has-float-label text-xs"> |
| 91 | + <div class="float-label-container text-xs"> |
132 | 92 | <input
|
133 | 93 | type="text"
|
134 | 94 | autocomplete="off"
|
135 | 95 | placeholder="Image"
|
136 | 96 | value="Image"
|
137 |
| - class=" |
138 |
| - control-with-float-label |
139 |
| - outline-none |
140 |
| - focus:shadow-outline |
141 |
| - border |
142 |
| - w-full |
143 |
| - px-1 |
144 |
| - " |
| 97 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
145 | 98 | />
|
146 |
| - <label for="Image" class="is-float-label bg-white text-gray-500">Image</label> |
| 99 | + <label for="Image" class="float-label-self bg-white text-gray-500">Image</label> |
147 | 100 | </div>
|
148 | 101 |
|
149 |
| - <div class="has-float-label"> |
| 102 | + <div class="float-label-container"> |
150 | 103 | <select
|
151 | 104 | id="Select"
|
152 |
| - class=" |
153 |
| - control-with-float-label |
154 |
| - outline-none |
155 |
| - focus:shadow-outline |
156 |
| - border |
157 |
| - w-full |
158 |
| - px-1 |
159 |
| - " |
| 105 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
160 | 106 | >
|
161 | 107 | <option value="">Select option</option>
|
162 | 108 | <option value="1">Option 1</option>
|
|
165 | 111 | <option value="4">Option 4</option>
|
166 | 112 | <option value="5">Option 5</option>
|
167 | 113 | </select>
|
168 |
| - <label class="is-float-label bg-white text-gray-500" for="Select">Select</label> |
| 114 | + <label class="float-label-self bg-white text-gray-500" for="Select">Select</label> |
169 | 115 | </div>
|
170 | 116 |
|
171 |
| - <div class="has-float-label"> |
| 117 | + <div class="float-label-container"> |
172 | 118 | <textarea
|
173 |
| - class=" |
174 |
| - control-with-float-label |
175 |
| - outline-none |
176 |
| - focus:shadow-outline |
177 |
| - border |
178 |
| - w-full |
179 |
| - px-1 |
180 |
| - " |
| 119 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
181 | 120 | placeholder="Bio"
|
182 | 121 | >
|
183 | 122 | Bio</textarea
|
184 | 123 | >
|
185 |
| - <label class="is-float-label bg-white text-gray-500">Bio</label> |
| 124 | + <label class="float-label-self bg-white text-gray-500">Bio</label> |
186 | 125 | </div>
|
187 | 126 |
|
188 | 127 | <form class="max-w-xs mx-auto p-5 space-y-4">
|
189 | 128 | <h2 class="text-2xl font-bold text-center">Readme Example</h2>
|
190 |
| - <div class="has-float-label"> |
| 129 | + <div class="float-label-container"> |
191 | 130 | <input
|
192 | 131 | type="text"
|
193 | 132 | id="name"
|
194 | 133 | autocomplete="off"
|
195 | 134 | placeholder="Name"
|
196 |
| - class=" |
197 |
| - control-with-float-label |
198 |
| - outline-none |
199 |
| - focus:shadow-outline |
200 |
| - border |
201 |
| - w-full |
202 |
| - px-1 |
203 |
| - " |
| 135 | + class="float-label-control outline-none focus:shadow-outline border w-full px-1" |
204 | 136 | />
|
205 |
| - <label for="name" class="is-float-label bg-white text-gray-500">Name</label> |
| 137 | + <label for="name" class="float-label-self bg-white text-gray-500">Name</label> |
206 | 138 | </div>
|
207 | 139 |
|
208 |
| - <div title="Auto" class="auto-float-label"> |
| 140 | + <div title="Auto" class="float-label-auto"> |
209 | 141 | <input
|
210 | 142 | type="text"
|
211 | 143 | id="auto"
|
|
0 commit comments