Inputs / Form Inputs - 图1

Inputs / Form Inputs

Form inputs allow you to create flexible and beautiful Form layouts.

Inputs Layout

It is recommended to use inputs with List View:

  1. <div class="list">
  2. <ul>
  3. ...
  4. <li class="item-content item-input">
  5. <div class="item-media">... icon/image here ...</div>
  6. <div class="item-inner">
  7. <div class="item-input-wrap">
  8. <input type="text" name="name">
  9. <span class="input-clear-button"></span>
  10. </div>
  11. </div>
  12. </li>
  13. ...
  14. </ul>
  15. </div>

Where:

  • item-input - required additional class on item-content. Required for correct input item layout

  • item-label - additional class on item-title required to display label correctly

  • item-input-wrap - required additional input wrapper. Must be a direct child of item-inner

  • <span class="input-clear-button"> - button that will clear input value in click. Optional

Stacked Labels

By default inputs list is displayed with stacked labels. Stacked labels always appear on top of the input:

  1. <div class="list">
  2. <ul>
  3. ...
  4. <li class="item-content item-input">
  5. <div class="item-media">... icon/image here ...</div>
  6. <div class="item-inner">
  7. <div class="item-title item-label">Name</div>
  8. <div class="item-input-wrap">
  9. <input type="text" name="name">
  10. <span class="input-clear-button"></span>
  11. </div>
  12. </div>
  13. </li>
  14. ...
  15. </ul>
  16. </div>

Where:

  • item-title item-label - input label

Inline Labels

If you want to use inline labels then you can additional inline-labels class to the whole list or inline-label class to the single item:

  1. <div class="list inline-labels">
  2. <ul>
  3. ...
  4. <li class="item-content item-input">
  5. <div class="item-media">... icon/image here ...</div>
  6. <div class="item-inner">
  7. <div class="item-title item-label">Name</div>
  8. <div class="item-input-wrap">
  9. <input type="text" name="name">
  10. <span class="input-clear-button"></span>
  11. </div>
  12. </div>
  13. </li>
  14. ...
  15. </ul>
  16. </div>
  17. <!-- or just to single item -->
  18. <div class="list">
  19. <ul>
  20. ...
  21. <!-- additional "inline-label" class -->
  22. <li class="item-content item-input inline-label">
  23. ...
  24. </li>
  25. ...
  26. </ul>
  27. </div>

Floating Labels

MD theme only feature

To add floating label, we need to use item-floating-label class instead of item-label. In iOS theme it will be displayed as default stacked label.

  1. <div class="list">
  2. <ul>
  3. ...
  4. <li class="item-content item-input">
  5. <div class="item-media">... icon/image here ...</div>
  6. <div class="item-inner">
  7. <!-- "item-floating-label" class on item title -->
  8. <div class="item-title item-floating-label">Name</div>
  9. <div class="item-input-wrap">
  10. <input type="text" name="name">
  11. <span class="input-clear-button"></span>
  12. </div>
  13. </div>
  14. </li>
  15. ...
  16. </ul>
  17. </div>

Item Info

It is also possible to additional information about form input:

  1. <div class="list">
  2. <ul>
  3. ...
  4. <!-- additional "item-input-with-info" class on item -->
  5. <li class="item-content item-input item-input-with-info">
  6. <div class="item-media">... icon/image here ...</div>
  7. <div class="item-inner">
  8. <div class="item-title item-label">Name</div>
  9. <div class="item-input-wrap">
  10. <input type="text" name="name">
  11. <span class="input-clear-button"></span>
  12. <!-- element with additional information -->
  13. <div class="item-input-info">Some information about input field</div>
  14. </div>
  15. </div>
  16. </li>
  17. ...
  18. </ul>
  19. </div>

Where:

  • item-input-with-info - required additional class on input item

  • <div class="item-input-info">...</div> - element with additional information

Input Dropdown

It is also possible to indicate dropdown input (like select) with additional input-dropdown-wrap class. It will add small dropdown icon on the right (▼):

  1. <div class="list">
  2. <ul>
  3. ...
  4. <li class="item-content item-input">
  5. <div class="item-media">... icon/image here ...</div>
  6. <div class="item-inner">
  7. <div class="item-title item-label">Name</div>
  8. <!-- additional "input-dropdown-wrap" class -->
  9. <div class="item-input-wrap input-dropdown-wrap">
  10. <select>
  11. ...
  12. </select>
  13. </div>
  14. </div>
  15. </li>
  16. ...
  17. </ul>
  18. </div>

Supported Inputs

Here is the list of input elements that you can put inside of item-input-wrap:

All text inputsSupported types: text, password, email, tel, url, date, number, datetime-local
  1. <div class=”item-input-wrap”>
  2. <input type=”text”>
  3. </div>
  4. <div class=”item-input-wrap”>
  5. <input type=”email”>
  6. </div>
Select
  1. <div class=”item-input-wrap”>
  2. <select>…</select”>
  3. </div>
Textarea
  1. <div class=”item-input-wrap”>
  2. <textarea></textarea>
  3. </div>
Range Slider
  1. <div class=”item-input-wrap”>
  2. <div class=”range-slider”>
  3. <input type=”range min=”0 max=”100 step=”0.1”>
  4. </div>
  5. </div>

Resizable Textarea

To make textarea automatically resize based on its content we may just add resizable class:

  1. <textarea class="resizable"></textarea>

Validation

Framework7 supports HTML5 validation based on validity input property. With enabled validation, there will appear validation error messages in case of input has invalid value.

To enable validation we must add: required and validate attributes to the input element.

Value validation depends on input type. For example input type="email" will be validated to match email pattern, etc. It is default browser behavior. In case you want to add custom rule to validate input value, then it must be done using pattern input attribute:

  1. <!-- default validation, check for value is not empty -->
  2. <input type="text" placeholder="Your name" required validate>
  3. <!-- default email validation, value must be email -->
  4. <input type="email" placeholder="Your e-mail" required validate>
  5. <!-- default url validation -->
  6. <input type="url" placeholder="Your URL" required validate>
  7. <!-- pattern validation, value must be "apple" or "banana" -->
  8. <input type="text" required validate pattern="apple|banana" placeholder="Type 'apple' or 'banana'" >
  9. <!-- pattern validation with custom error message, value must be numbers only -->
  10. <input type="text" placeholder="Enter number" required validate pattern="[0-9]*" data-error-message="Only numbers please!">

Input State Classes

There are several classes that can be added to input element depending on its state and content:

  • input-with-value - will be added to input when it has value
  • input-focused - will be added to input when it is focused
  • input-invalid - will be added to input when its value is not valid

Same states will be added to input’s parent item-input element:

  • item-input-with-value - will be added to input item when its input has value
  • item-input-focused - will be added to input item when its input is focused
  • item-input-invalid - will be added to input item when its input’s value is not valid

Input App Parameters

It is possible to control some default input behavior using global app parameters where we can pass input-related parameters under input property:

ParameterTypeDefaultDescription
scrollIntoViewOnFocusbooleanWhen enabled will scroll input into view on input focus. By default it is enabled for android devices only, as it helps to solve issue when on-screen keyboard may overlap the input
scrollIntoViewCenteredbooleanfalseTweaks behavior of previous parameter to scroll input into the center of view on input focus
scrollIntoViewDurationnumber0Default duration for scrolling input into view
scrollIntoViewAlwaysbooleanfalseWhen enabled will scroll input into view no matter is it outside of view or not

For example:

  1. var app = new Framework7({
  2. input: {
  3. scrollIntoViewOnFocus: true,
  4. scrollIntoViewCentered: true,
  5. }
  6. });

Input App Methods

We can use following app methods available to control Inputs:

app.input.scrollIntoView(inputEl, duration, centered, force)Scroll input into view
  • inputEl - HTMLElement or string (with CSS Selector) of required input element to get into view. Required
  • duration - number - scrolling duration in ms.
  • centered - boolean - defines whether it must be scrolled into the center of view or not.
  • force - boolean - scrolls input into view no matter is it outside of view or not.
app.input.focus(inputEl)Will add additional required styles and classes on input like when it is focused
  • inputEl - HTMLElement or string (with CSS Selector) of required input element. Required.
app.input.blur(inputEl)Will remove additional required styles and classes on input like when it loses focus
  • inputEl - HTMLElement or string (with CSS Selector) of required input element. Required.
app.input.resizeTextarea(textareaEl)Force resizable textarea to resize depending on its content
  • textareaEl - HTMLElement or string (with CSS Selector) of required textarea element. Required.
app.input.checkEmptyState(inputEl)Recalculate required additional styles and classes on input element based on whether it has value or not
  • inputEl - HTMLElement or string (with CSS Selector) of required textarea element. Required.
app.input.validate(inputEl)Validate input
  • inputEl - HTMLElement or string (with CSS Selector) of required textarea element. Required.
app.input.validateInputs(containerEl)Validate all inputs in passed container
  • containerEl - HTMLElement or string (with CSS Selector) of required element with inputs inside to validate. Required.

Input Events

Inputs will fire the following DOM events input elements:

EventTargetDescription
textarea:resizeTextarea Element<textarea class=”resizable”>Event will be triggered after resizable textarea resized. event.detail will contain object with the initialHeight, currentHeight and scrollHeight properties
input:notemptyInput Element<input/textarea>Event will be triggered when input value becomes not empty
input:emptyInput Element<input/textarea>Event will be triggered when input value becomes empty
input:clearInput Element<input/textarea>Event will be triggered after input value will be cleared by clicking on input clear button

Examples

  1. <div class="block-title">Full Layout / Inline Labels</div>
  2. <div class="list inline-labels no-hairlines-md">
  3. <ul>
  4. <li class="item-content item-input">
  5. <div class="item-media">
  6. <i class="icon demo-list-icon"></i>
  7. </div>
  8. <div class="item-inner">
  9. <div class="item-title item-label">Name</div>
  10. <div class="item-input-wrap">
  11. <input type="text" placeholder="Your name">
  12. <span class="input-clear-button"></span>
  13. </div>
  14. </div>
  15. </li>
  16. <li class="item-content item-input">
  17. <div class="item-media">
  18. <i class="icon demo-list-icon"></i>
  19. </div>
  20. <div class="item-inner">
  21. <div class="item-title item-label">Password</div>
  22. <div class="item-input-wrap">
  23. <input type="password" placeholder="Your password">
  24. <span class="input-clear-button"></span>
  25. </div>
  26. </div>
  27. </li>
  28. <li class="item-content item-input">
  29. <div class="item-media">
  30. <i class="icon demo-list-icon"></i>
  31. </div>
  32. <div class="item-inner">
  33. <div class="item-title item-label">E-mail</div>
  34. <div class="item-input-wrap">
  35. <input type="email" placeholder="Your e-mail">
  36. <span class="input-clear-button"></span>
  37. </div>
  38. </div>
  39. </li>
  40. <li class="item-content item-input">
  41. <div class="item-media">
  42. <i class="icon demo-list-icon"></i>
  43. </div>
  44. <div class="item-inner">
  45. <div class="item-title item-label">URL</div>
  46. <div class="item-input-wrap">
  47. <input type="url" placeholder="URL">
  48. <span class="input-clear-button"></span>
  49. </div>
  50. </div>
  51. </li>
  52. <li class="item-content item-input">
  53. <div class="item-media">
  54. <i class="icon demo-list-icon"></i>
  55. </div>
  56. <div class="item-inner">
  57. <div class="item-title item-label">Phone</div>
  58. <div class="item-input-wrap">
  59. <input type="tel" placeholder="Your phone number">
  60. <span class="input-clear-button"></span>
  61. </div>
  62. </div>
  63. </li>
  64. <li class="item-content item-input">
  65. <div class="item-media">
  66. <i class="icon demo-list-icon"></i>
  67. </div>
  68. <div class="item-inner">
  69. <div class="item-title item-label">Gender</div>
  70. <div class="item-input-wrap input-dropdown-wrap">
  71. <select placeholder="Please choose...">
  72. <option value="Male">Male</option>
  73. <option value="Female">Female</option>
  74. </select>
  75. </div>
  76. </div>
  77. </li>
  78. <li class="item-content item-input">
  79. <div class="item-media">
  80. <i class="icon demo-list-icon"></i>
  81. </div>
  82. <div class="item-inner">
  83. <div class="item-title item-label">Birthday</div>
  84. <div class="item-input-wrap">
  85. <input type="date" value="2014-04-30" placeholder="Please choose...">
  86. </div>
  87. </div>
  88. </li>
  89. <li class="item-content item-input">
  90. <div class="item-media">
  91. <i class="icon demo-list-icon"></i>
  92. </div>
  93. <div class="item-inner">
  94. <div class="item-title item-label">Date time</div>
  95. <div class="item-input-wrap">
  96. <input type="datetime-local" placeholder="Please choose...">
  97. </div>
  98. </div>
  99. </li>
  100. <li class="item-content item-input">
  101. <div class="item-media">
  102. <i class="icon demo-list-icon"></i>
  103. </div>
  104. <div class="item-inner">
  105. <div class="item-title item-label">Range</div>
  106. <div class="item-input-wrap">
  107. <div class="range-slider range-slider-init" data-label="true">
  108. <input type="range" value="50" min="0" max="100" step="1">
  109. </div>
  110. </div>
  111. </div>
  112. </li>
  113. <li class="item-content item-input">
  114. <div class="item-media">
  115. <i class="icon demo-list-icon"></i>
  116. </div>
  117. <div class="item-inner">
  118. <div class="item-title item-label">Textarea</div>
  119. <div class="item-input-wrap">
  120. <textarea placeholder="Bio"></textarea>
  121. </div>
  122. </div>
  123. </li>
  124. <li class="item-content item-input">
  125. <div class="item-media">
  126. <i class="icon demo-list-icon"></i>
  127. </div>
  128. <div class="item-inner">
  129. <div class="item-title item-label">Resizable</div>
  130. <div class="item-input-wrap">
  131. <textarea class="resizable" placeholder="Bio"></textarea>
  132. </div>
  133. </div>
  134. </li>
  135. </ul>
  136. </div>
  137. <div class="block-title">Full Layout / Stacked Labels</div>
  138. <div class="list no-hairlines-md">
  139. <ul>
  140. <li class="item-content item-input">
  141. <div class="item-media">
  142. <i class="icon demo-list-icon"></i>
  143. </div>
  144. <div class="item-inner">
  145. <div class="item-title item-label">Name</div>
  146. <div class="item-input-wrap">
  147. <input type="text" placeholder="Your name">
  148. <span class="input-clear-button"></span>
  149. </div>
  150. </div>
  151. </li>
  152. <li class="item-content item-input">
  153. <div class="item-media">
  154. <i class="icon demo-list-icon"></i>
  155. </div>
  156. <div class="item-inner">
  157. <div class="item-title item-label">Password</div>
  158. <div class="item-input-wrap">
  159. <input type="password" placeholder="Your password">
  160. <span class="input-clear-button"></span>
  161. </div>
  162. </div>
  163. </li>
  164. <li class="item-content item-input">
  165. <div class="item-media">
  166. <i class="icon demo-list-icon"></i>
  167. </div>
  168. <div class="item-inner">
  169. <div class="item-title item-label">E-mail</div>
  170. <div class="item-input-wrap">
  171. <input type="email" placeholder="Your e-mail">
  172. <span class="input-clear-button"></span>
  173. </div>
  174. </div>
  175. </li>
  176. <li class="item-content item-input">
  177. <div class="item-media">
  178. <i class="icon demo-list-icon"></i>
  179. </div>
  180. <div class="item-inner">
  181. <div class="item-title item-label">URL</div>
  182. <div class="item-input-wrap">
  183. <input type="url" placeholder="URL">
  184. <span class="input-clear-button"></span>
  185. </div>
  186. </div>
  187. </li>
  188. <li class="item-content item-input">
  189. <div class="item-media">
  190. <i class="icon demo-list-icon"></i>
  191. </div>
  192. <div class="item-inner">
  193. <div class="item-title item-label">Phone</div>
  194. <div class="item-input-wrap">
  195. <input type="tel" placeholder="Your phone number">
  196. <span class="input-clear-button"></span>
  197. </div>
  198. </div>
  199. </li>
  200. <li class="item-content item-input">
  201. <div class="item-media">
  202. <i class="icon demo-list-icon"></i>
  203. </div>
  204. <div class="item-inner">
  205. <div class="item-title item-label">Gender</div>
  206. <div class="item-input-wrap input-dropdown-wrap">
  207. <select placeholder="Please choose...">
  208. <option value="Male">Male</option>
  209. <option value="Female">Female</option>
  210. </select>
  211. </div>
  212. </div>
  213. </li>
  214. <li class="item-content item-input">
  215. <div class="item-media">
  216. <i class="icon demo-list-icon"></i>
  217. </div>
  218. <div class="item-inner">
  219. <div class="item-title item-label">Birthday</div>
  220. <div class="item-input-wrap">
  221. <input type="date" value="2014-04-30" placeholder="Please choose...">
  222. </div>
  223. </div>
  224. </li>
  225. <li class="item-content item-input">
  226. <div class="item-media">
  227. <i class="icon demo-list-icon"></i>
  228. </div>
  229. <div class="item-inner">
  230. <div class="item-title item-label">Date time</div>
  231. <div class="item-input-wrap">
  232. <input type="datetime-local" placeholder="Please choose...">
  233. </div>
  234. </div>
  235. </li>
  236. <li class="item-content item-input">
  237. <div class="item-media">
  238. <i class="icon demo-list-icon"></i>
  239. </div>
  240. <div class="item-inner">
  241. <div class="item-title item-label">Range</div>
  242. <div class="item-input-wrap">
  243. <div class="range-slider range-slider-init" data-label="true">
  244. <input type="range" value="50" min="0" max="100" step="1">
  245. </div>
  246. </div>
  247. </div>
  248. </li>
  249. <li class="item-content item-input">
  250. <div class="item-media">
  251. <i class="icon demo-list-icon"></i>
  252. </div>
  253. <div class="item-inner">
  254. <div class="item-title item-label">Textarea</div>
  255. <div class="item-input-wrap">
  256. <textarea placeholder="Bio"></textarea>
  257. </div>
  258. </div>
  259. </li>
  260. <li class="item-content item-input">
  261. <div class="item-media">
  262. <i class="icon demo-list-icon"></i>
  263. </div>
  264. <div class="item-inner">
  265. <div class="item-title item-label">Resizable</div>
  266. <div class="item-input-wrap">
  267. <textarea class="resizable" placeholder="Bio"></textarea>
  268. </div>
  269. </div>
  270. </li>
  271. </ul>
  272. </div>
  273. <div class="block-title">Floating Labels (MD-theme only)</div>
  274. <div class="list no-hairlines-md">
  275. <ul>
  276. <li class="item-content item-input">
  277. <div class="item-media">
  278. <i class="icon demo-list-icon"></i>
  279. </div>
  280. <div class="item-inner">
  281. <div class="item-title item-floating-label">Name</div>
  282. <div class="item-input-wrap">
  283. <input type="text" placeholder="Your name">
  284. <span class="input-clear-button"></span>
  285. </div>
  286. </div>
  287. </li>
  288. <li class="item-content item-input">
  289. <div class="item-media">
  290. <i class="icon demo-list-icon"></i>
  291. </div>
  292. <div class="item-inner">
  293. <div class="item-title item-floating-label">Password</div>
  294. <div class="item-input-wrap">
  295. <input type="password" placeholder="Your password">
  296. <span class="input-clear-button"></span>
  297. </div>
  298. </div>
  299. </li>
  300. <li class="item-content item-input">
  301. <div class="item-media">
  302. <i class="icon demo-list-icon"></i>
  303. </div>
  304. <div class="item-inner">
  305. <div class="item-title item-floating-label">E-mail</div>
  306. <div class="item-input-wrap">
  307. <input type="email" placeholder="Your e-mail">
  308. <span class="input-clear-button"></span>
  309. </div>
  310. </div>
  311. </li>
  312. <li class="item-content item-input">
  313. <div class="item-media">
  314. <i class="icon demo-list-icon"></i>
  315. </div>
  316. <div class="item-inner">
  317. <div class="item-title item-floating-label">URL</div>
  318. <div class="item-input-wrap">
  319. <input type="url" placeholder="URL">
  320. <span class="input-clear-button"></span>
  321. </div>
  322. </div>
  323. </li>
  324. <li class="item-content item-input">
  325. <div class="item-media">
  326. <i class="icon demo-list-icon"></i>
  327. </div>
  328. <div class="item-inner">
  329. <div class="item-title item-floating-label">Phone</div>
  330. <div class="item-input-wrap">
  331. <input type="tel" placeholder="Your phone number">
  332. <span class="input-clear-button"></span>
  333. </div>
  334. </div>
  335. </li>
  336. <li class="item-content item-input">
  337. <div class="item-media">
  338. <i class="icon demo-list-icon"></i>
  339. </div>
  340. <div class="item-inner">
  341. <div class="item-title item-floating-label">Bio</div>
  342. <div class="item-input-wrap">
  343. <textarea class="resizable" placeholder="Bio"></textarea>
  344. <span class="input-clear-button"></span>
  345. </div>
  346. </div>
  347. </li>
  348. </ul>
  349. </div>
  350. <div class="block-title">Validation + Additional Info</div>
  351. <div class="list no-hairlines-md">
  352. <ul>
  353. <li class="item-content item-input item-input-with-info">
  354. <div class="item-media">
  355. <i class="icon demo-list-icon"></i>
  356. </div>
  357. <div class="item-inner">
  358. <div class="item-title item-label">Name</div>
  359. <div class="item-input-wrap">
  360. <input type="text" placeholder="Your name" required validate>
  361. <span class="input-clear-button"></span>
  362. <div class="item-input-info">Default "required" validation</div>
  363. </div>
  364. </div>
  365. </li>
  366. <li class="item-content item-input item-input-with-info">
  367. <div class="item-media">
  368. <i class="icon demo-list-icon"></i>
  369. </div>
  370. <div class="item-inner">
  371. <div class="item-title item-label">Fruit</div>
  372. <div class="item-input-wrap">
  373. <input type="text" placeholder="Type 'apple' or 'banana'" required validate pattern="apple|banana">
  374. <span class="input-clear-button"></span>
  375. <div class="item-input-info">Pattern validation (<b>apple|banana</b>)</div>
  376. </div>
  377. </div>
  378. </li>
  379. <li class="item-content item-input item-input-with-info">
  380. <div class="item-media">
  381. <i class="icon demo-list-icon"></i>
  382. </div>
  383. <div class="item-inner">
  384. <div class="item-title item-label">E-mail</div>
  385. <div class="item-input-wrap">
  386. <input type="email" placeholder="Your e-mail" required validate>
  387. <span class="input-clear-button"></span>
  388. <div class="item-input-info">Default e-mail validation</div>
  389. </div>
  390. </div>
  391. </li>
  392. <li class="item-content item-input item-input-with-info">
  393. <div class="item-media">
  394. <i class="icon demo-list-icon"></i>
  395. </div>
  396. <div class="item-inner">
  397. <div class="item-title item-label">URL</div>
  398. <div class="item-input-wrap">
  399. <input type="url" placeholder="Your URL" required validate>
  400. <span class="input-clear-button"></span>
  401. <div class="item-input-info">Default URL validation</div>
  402. </div>
  403. </div>
  404. </li>
  405. <li class="item-content item-input item-input-with-info">
  406. <div class="item-media">
  407. <i class="icon demo-list-icon"></i>
  408. </div>
  409. <div class="item-inner">
  410. <div class="item-title item-label">Number</div>
  411. <div class="item-input-wrap">
  412. <input type="text" placeholder="Enter number" required validate pattern="[0-9]*" data-error-message="Only numbers please!">
  413. <span class="input-clear-button"></span>
  414. <div class="item-input-info">With custom error message</div>
  415. </div>
  416. </div>
  417. </li>
  418. </ul>
  419. </div>
  420. <div class="block-title">Icon + Input</div>
  421. <div class="list no-hairlines-md">
  422. <ul>
  423. <li class="item-content item-input">
  424. <div class="item-media">
  425. <i class="icon demo-list-icon"></i>
  426. </div>
  427. <div class="item-inner">
  428. <div class="item-input-wrap">
  429. <input type="text" placeholder="Your name">
  430. <span class="input-clear-button"></span>
  431. </div>
  432. </div>
  433. </li>
  434. <li class="item-content item-input">
  435. <div class="item-media">
  436. <i class="icon demo-list-icon"></i>
  437. </div>
  438. <div class="item-inner">
  439. <div class="item-input-wrap">
  440. <input type="password" placeholder="Your password">
  441. <span class="input-clear-button"></span>
  442. </div>
  443. </div>
  444. </li>
  445. <li class="item-content item-input">
  446. <div class="item-media">
  447. <i class="icon demo-list-icon"></i>
  448. </div>
  449. <div class="item-inner">
  450. <div class="item-input-wrap">
  451. <input type="email" placeholder="Your e-mail">
  452. <span class="input-clear-button"></span>
  453. </div>
  454. </div>
  455. </li>
  456. <li class="item-content item-input">
  457. <div class="item-media">
  458. <i class="icon demo-list-icon"></i>
  459. </div>
  460. <div class="item-inner">
  461. <div class="item-input-wrap">
  462. <input type="url" placeholder="URL">
  463. <span class="input-clear-button"></span>
  464. </div>
  465. </div>
  466. </li>
  467. </ul>
  468. </div>
  469. <div class="block-title">Label + Input</div>
  470. <div class="list no-hairlines-md">
  471. <ul>
  472. <li class="item-content item-input">
  473. <div class="item-inner">
  474. <div class="item-title item-label">Name</div>
  475. <div class="item-input-wrap">
  476. <input type="text" placeholder="Your name">
  477. <span class="input-clear-button"></span>
  478. </div>
  479. </div>
  480. </li>
  481. <li class="item-content item-input">
  482. <div class="item-inner">
  483. <div class="item-title item-label">Password</div>
  484. <div class="item-input-wrap">
  485. <input type="password" placeholder="Your password">
  486. <span class="input-clear-button"></span>
  487. </div>
  488. </div>
  489. </li>
  490. <li class="item-content item-input">
  491. <div class="item-inner">
  492. <div class="item-title item-label">E-mail</div>
  493. <div class="item-input-wrap">
  494. <input type="email" placeholder="Your e-mail">
  495. <span class="input-clear-button"></span>
  496. </div>
  497. </div>
  498. </li>
  499. <li class="item-content item-input">
  500. <div class="item-inner">
  501. <div class="item-title item-label">URL</div>
  502. <div class="item-input-wrap">
  503. <input type="url" placeholder="URL">
  504. <span class="input-clear-button"></span>
  505. </div>
  506. </div>
  507. </li>
  508. </ul>
  509. </div>
  510. <div class="block-title">Only Inputs</div>
  511. <div class="list no-hairlines-md">
  512. <ul>
  513. <li class="item-content item-input">
  514. <div class="item-inner">
  515. <div class="item-input-wrap">
  516. <input type="text" placeholder="Your name">
  517. <span class="input-clear-button"></span>
  518. </div>
  519. </div>
  520. </li>
  521. <li class="item-content item-input">
  522. <div class="item-inner">
  523. <div class="item-input-wrap">
  524. <input type="password" placeholder="Your password">
  525. <span class="input-clear-button"></span>
  526. </div>
  527. </div>
  528. </li>
  529. <li class="item-content item-input">
  530. <div class="item-inner">
  531. <div class="item-input-wrap">
  532. <input type="email" placeholder="Your e-mail">
  533. <span class="input-clear-button"></span>
  534. </div>
  535. </div>
  536. </li>
  537. <li class="item-content item-input">
  538. <div class="item-inner">
  539. <div class="item-input-wrap">
  540. <input type="url" placeholder="URL">
  541. <span class="input-clear-button"></span>
  542. </div>
  543. </div>
  544. </li>
  545. </ul>
  546. </div>
  547. <div class="block-title">Inputs + Additional Info</div>
  548. <div class="list no-hairlines-md">
  549. <ul>
  550. <li class="item-content item-input item-input-with-info">
  551. <div class="item-inner">
  552. <div class="item-input-wrap">
  553. <input type="text" placeholder="Your name">
  554. <span class="input-clear-button"></span>
  555. <div class="item-input-info">Full name please</div>
  556. </div>
  557. </div>
  558. </li>
  559. <li class="item-content item-input item-input-with-info">
  560. <div class="item-inner">
  561. <div class="item-input-wrap">
  562. <input type="password" placeholder="Your password">
  563. <span class="input-clear-button"></span>
  564. <div class="item-input-info">8 characters minimum</div>
  565. </div>
  566. </div>
  567. </li>
  568. <li class="item-content item-input item-input-with-info">
  569. <div class="item-inner">
  570. <div class="item-input-wrap">
  571. <input type="email" placeholder="Your e-mail">
  572. <span class="input-clear-button"></span>
  573. <div class="item-input-info">Your work e-mail address</div>
  574. </div>
  575. </div>
  576. </li>
  577. <li class="item-content item-input item-input-with-info">
  578. <div class="item-inner">
  579. <div class="item-input-wrap">
  580. <input type="url" placeholder="URL">
  581. <span class="input-clear-button"></span>
  582. <div class="item-input-info">Your website URL</div>
  583. </div>
  584. </div>
  585. </li>
  586. </ul>
  587. </div>
  588. <div class="block-title">Only Inputs Inset</div>
  589. <div class="list inset">
  590. <ul>
  591. <li class="item-content item-input">
  592. <div class="item-inner">
  593. <div class="item-input-wrap">
  594. <input type="text" placeholder="Your name">
  595. <span class="input-clear-button"></span>
  596. </div>
  597. </div>
  598. </li>
  599. <li class="item-content item-input">
  600. <div class="item-inner">
  601. <div class="item-input-wrap">
  602. <input type="password" placeholder="Your password">
  603. <span class="input-clear-button"></span>
  604. </div>
  605. </div>
  606. </li>
  607. <li class="item-content item-input">
  608. <div class="item-inner">
  609. <div class="item-input-wrap">
  610. <input type="email" placeholder="Your e-mail">
  611. <span class="input-clear-button"></span>
  612. </div>
  613. </div>
  614. </li>
  615. <li class="item-content item-input">
  616. <div class="item-inner">
  617. <div class="item-input-wrap">
  618. <input type="url" placeholder="URL">
  619. <span class="input-clear-button"></span>
  620. </div>
  621. </div>
  622. </li>
  623. </ul>
  624. </div>