form-elements.html 151 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944
  1. <!doctype html>
  2. <!--
  3. * Tabler - Premium and Open Source dashboard template with responsive and high quality UI.
  4. * @version 1.0.0-beta17
  5. * @link https://tabler.io
  6. * Copyright 2018-2023 The Tabler Authors
  7. * Copyright 2018-2023 codecalm.net Paweł Kuna
  8. * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
  9. -->
  10. <html lang="en">
  11. <head>
  12. <meta charset="utf-8"/>
  13. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
  14. <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
  15. <title>Form elements - Tabler - Premium and Open Source dashboard template with responsive and high quality UI.</title>
  16. <!-- CSS files -->
  17. <link href="../dist/css/tabler.min.css?1674944402" rel="stylesheet"/>
  18. <link href="../dist/css/tabler-flags.min.css?1674944402" rel="stylesheet"/>
  19. <link href="../dist/css/tabler-payments.min.css?1674944402" rel="stylesheet"/>
  20. <link href="../dist/css/tabler-vendors.min.css?1674944402" rel="stylesheet"/>
  21. <link href="../dist/css/demo.min.css?1674944402" rel="stylesheet"/>
  22. <style>
  23. @import url('https://rsms.me/inter/inter.css');
  24. :root {
  25. --tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  26. }
  27. body {
  28. font-feature-settings: "cv03", "cv04", "cv11";
  29. }
  30. </style>
  31. </head>
  32. <body >
  33. <script src="../dist/js/demo-theme.min.js?1674944402"></script>
  34. <div class="page">
  35. <!-- Navbar -->
  36. <header class="navbar navbar-expand-md navbar-light d-print-none">
  37. <div class="container-xl">
  38. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
  39. <span class="navbar-toggler-icon"></span>
  40. </button>
  41. <h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
  42. <a href="..">
  43. <img src="../static/logo.svg" width="110" height="32" alt="Tabler" class="navbar-brand-image">
  44. </a>
  45. </h1>
  46. <div class="navbar-nav flex-row order-md-last">
  47. <div class="nav-item d-none d-md-flex me-3">
  48. <div class="btn-list">
  49. <a href="https://github.com/tabler/tabler" class="btn" target="_blank" rel="noreferrer">
  50. <!-- Download SVG icon from http://tabler-icons.io/i/brand-github -->
  51. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>
  52. Source code
  53. </a>
  54. <a href="https://github.com/sponsors/codecalm" class="btn" target="_blank" rel="noreferrer">
  55. <!-- Download SVG icon from http://tabler-icons.io/i/heart -->
  56. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-pink" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" /></svg>
  57. Sponsor
  58. </a>
  59. </div>
  60. </div>
  61. <div class="d-none d-md-flex">
  62. <a href="?theme=dark" class="nav-link px-0 hide-theme-dark" title="Enable dark mode" data-bs-toggle="tooltip"
  63. data-bs-placement="bottom">
  64. <!-- Download SVG icon from http://tabler-icons.io/i/moon -->
  65. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z" /></svg>
  66. </a>
  67. <a href="?theme=light" class="nav-link px-0 hide-theme-light" title="Enable light mode" data-bs-toggle="tooltip"
  68. data-bs-placement="bottom">
  69. <!-- Download SVG icon from http://tabler-icons.io/i/sun -->
  70. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7" /></svg>
  71. </a>
  72. <div class="nav-item dropdown d-none d-md-flex me-3">
  73. <a href="#" class="nav-link px-0" data-bs-toggle="dropdown" tabindex="-1" aria-label="Show notifications">
  74. <!-- Download SVG icon from http://tabler-icons.io/i/bell -->
  75. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6" /><path d="M9 17v1a3 3 0 0 0 6 0v-1" /></svg>
  76. <span class="badge bg-red"></span>
  77. </a>
  78. <div class="dropdown-menu dropdown-menu-arrow dropdown-menu-end dropdown-menu-card">
  79. <div class="card">
  80. <div class="card-header">
  81. <h3 class="card-title">Last updates</h3>
  82. </div>
  83. <div class="list-group list-group-flush list-group-hoverable">
  84. <div class="list-group-item">
  85. <div class="row align-items-center">
  86. <div class="col-auto"><span class="status-dot status-dot-animated bg-red d-block"></span></div>
  87. <div class="col text-truncate">
  88. <a href="#" class="text-body d-block">Example 1</a>
  89. <div class="d-block text-muted text-truncate mt-n1">
  90. Change deprecated html tags to text decoration classes (#29604)
  91. </div>
  92. </div>
  93. <div class="col-auto">
  94. <a href="#" class="list-group-item-actions">
  95. <!-- Download SVG icon from http://tabler-icons.io/i/star -->
  96. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" /></svg>
  97. </a>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="list-group-item">
  102. <div class="row align-items-center">
  103. <div class="col-auto"><span class="status-dot d-block"></span></div>
  104. <div class="col text-truncate">
  105. <a href="#" class="text-body d-block">Example 2</a>
  106. <div class="d-block text-muted text-truncate mt-n1">
  107. justify-content:between ⇒ justify-content:space-between (#29734)
  108. </div>
  109. </div>
  110. <div class="col-auto">
  111. <a href="#" class="list-group-item-actions show">
  112. <!-- Download SVG icon from http://tabler-icons.io/i/star -->
  113. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-yellow" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" /></svg>
  114. </a>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="list-group-item">
  119. <div class="row align-items-center">
  120. <div class="col-auto"><span class="status-dot d-block"></span></div>
  121. <div class="col text-truncate">
  122. <a href="#" class="text-body d-block">Example 3</a>
  123. <div class="d-block text-muted text-truncate mt-n1">
  124. Update change-version.js (#29736)
  125. </div>
  126. </div>
  127. <div class="col-auto">
  128. <a href="#" class="list-group-item-actions">
  129. <!-- Download SVG icon from http://tabler-icons.io/i/star -->
  130. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" /></svg>
  131. </a>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="list-group-item">
  136. <div class="row align-items-center">
  137. <div class="col-auto"><span class="status-dot status-dot-animated bg-green d-block"></span></div>
  138. <div class="col text-truncate">
  139. <a href="#" class="text-body d-block">Example 4</a>
  140. <div class="d-block text-muted text-truncate mt-n1">
  141. Regenerate package-lock.json (#29730)
  142. </div>
  143. </div>
  144. <div class="col-auto">
  145. <a href="#" class="list-group-item-actions">
  146. <!-- Download SVG icon from http://tabler-icons.io/i/star -->
  147. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-muted" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" /></svg>
  148. </a>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <div class="nav-item dropdown">
  158. <a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown" aria-label="Open user menu">
  159. <span class="avatar avatar-sm" style="background-image: url(../static/avatars/000m.jpg)"></span>
  160. <div class="d-none d-xl-block ps-2">
  161. <div>Paweł Kuna</div>
  162. <div class="mt-1 small text-muted">UI Designer</div>
  163. </div>
  164. </a>
  165. <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
  166. <a href="#" class="dropdown-item">Status</a>
  167. <a href="../profile.html" class="dropdown-item">Profile</a>
  168. <a href="#" class="dropdown-item">Feedback</a>
  169. <div class="dropdown-divider"></div>
  170. <a href="../settings.html" class="dropdown-item">Settings</a>
  171. <a href="../sign-in.html" class="dropdown-item">Logout</a>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </header>
  177. <header class="navbar-expand-md">
  178. <div class="collapse navbar-collapse" id="navbar-menu">
  179. <div class="navbar navbar-light">
  180. <div class="container-xl">
  181. <ul class="navbar-nav">
  182. <li class="nav-item">
  183. <a class="nav-link" href="../" >
  184. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/home -->
  185. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l-2 0l9 -9l9 9l-2 0" /><path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" /><path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" /></svg>
  186. </span>
  187. <span class="nav-link-title">
  188. Home
  189. </span>
  190. </a>
  191. </li>
  192. <li class="nav-item dropdown">
  193. <a class="nav-link dropdown-toggle" href="#navbar-base" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  194. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/package -->
  195. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5" /><path d="M12 12l8 -4.5" /><path d="M12 12l0 9" /><path d="M12 12l-8 -4.5" /><path d="M16 5.25l-8 4.5" /></svg>
  196. </span>
  197. <span class="nav-link-title">
  198. Interface
  199. </span>
  200. </a>
  201. <div class="dropdown-menu">
  202. <div class="dropdown-menu-columns">
  203. <div class="dropdown-menu-column">
  204. <a class="dropdown-item" href="../empty.html">
  205. Empty page
  206. </a>
  207. <a class="dropdown-item" href="../accordion.html">
  208. Accordion
  209. </a>
  210. <a class="dropdown-item" href="../blank.html">
  211. Blank page
  212. </a>
  213. <a class="dropdown-item" href="../badges.html">
  214. Badges
  215. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  216. </a>
  217. <a class="dropdown-item" href="../buttons.html">
  218. Buttons
  219. </a>
  220. <div class="dropend">
  221. <a class="dropdown-item dropdown-toggle" href="#sidebar-cards" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  222. Cards
  223. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  224. </a>
  225. <div class="dropdown-menu">
  226. <a href="../cards.html" class="dropdown-item">
  227. Sample cards
  228. </a>
  229. <a href="../card-actions.html" class="dropdown-item">
  230. Card actions
  231. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  232. </a>
  233. <a href="../cards-masonry.html" class="dropdown-item">
  234. Cards Masonry
  235. </a>
  236. </div>
  237. </div>
  238. <a class="dropdown-item" href="../colors.html">
  239. Colors
  240. </a>
  241. <a class="dropdown-item" href="../datagrid.html">
  242. Data grid
  243. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  244. </a>
  245. <a class="dropdown-item" href="../datatables.html">
  246. Datatables
  247. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  248. </a>
  249. <a class="dropdown-item" href="../dropdowns.html">
  250. Dropdowns
  251. </a>
  252. <a class="dropdown-item" href="../modals.html">
  253. Modals
  254. </a>
  255. <a class="dropdown-item" href="../maps.html">
  256. Maps
  257. </a>
  258. <a class="dropdown-item" href="../map-fullsize.html">
  259. Map fullsize
  260. </a>
  261. <a class="dropdown-item" href="../maps-vector.html">
  262. Vector maps
  263. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  264. </a>
  265. <a class="dropdown-item" href="../navigation.html">
  266. Navigation
  267. </a>
  268. <a class="dropdown-item" href="../charts.html">
  269. Charts
  270. </a>
  271. </div>
  272. <div class="dropdown-menu-column">
  273. <a class="dropdown-item" href="../pagination.html">
  274. <!-- Download SVG icon from http://tabler-icons.io/i/pie-chart -->
  275. Pagination
  276. </a>
  277. <a class="dropdown-item" href="../placeholder.html">
  278. Placeholder
  279. </a>
  280. <a class="dropdown-item" href="../steps.html">
  281. Steps
  282. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  283. </a>
  284. <a class="dropdown-item" href="../tabs.html">
  285. Tabs
  286. </a>
  287. <a class="dropdown-item" href="../tables.html">
  288. Tables
  289. </a>
  290. <a class="dropdown-item" href="../carousel.html">
  291. Carousel
  292. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  293. </a>
  294. <a class="dropdown-item" href="../lists.html">
  295. Lists
  296. </a>
  297. <a class="dropdown-item" href="../typography.html">
  298. Typography
  299. </a>
  300. <a class="dropdown-item" href="../offcanvas.html">
  301. Offcanvas
  302. </a>
  303. <a class="dropdown-item" href="../markdown.html">
  304. Markdown
  305. </a>
  306. <a class="dropdown-item" href="../dropzone.html">
  307. Dropzone
  308. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  309. </a>
  310. <a class="dropdown-item" href="../lightbox.html">
  311. Lightbox
  312. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  313. </a>
  314. <a class="dropdown-item" href="../tinymce.html">
  315. TinyMCE
  316. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  317. </a>
  318. <a class="dropdown-item" href="../inline-player.html">
  319. Inline player
  320. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  321. </a>
  322. <div class="dropend">
  323. <a class="dropdown-item dropdown-toggle" href="#sidebar-authentication" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  324. Authentication
  325. </a>
  326. <div class="dropdown-menu">
  327. <a href="../sign-in.html" class="dropdown-item">
  328. Sign in
  329. </a>
  330. <a href="../sign-in-link.html" class="dropdown-item">
  331. Sign in link
  332. </a>
  333. <a href="../sign-in-illustration.html" class="dropdown-item">
  334. Sign in with illustration
  335. </a>
  336. <a href="../sign-in-cover.html" class="dropdown-item">
  337. Sign in with cover
  338. </a>
  339. <a href="../sign-up.html" class="dropdown-item">
  340. Sign up
  341. </a>
  342. <a href="../forgot-password.html" class="dropdown-item">
  343. Forgot password
  344. </a>
  345. <a href="../terms-of-service.html" class="dropdown-item">
  346. Terms of service
  347. </a>
  348. <a href="../auth-lock.html" class="dropdown-item">
  349. Lock screen
  350. </a>
  351. </div>
  352. </div>
  353. <div class="dropend">
  354. <a class="dropdown-item dropdown-toggle" href="#sidebar-error" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  355. <!-- Download SVG icon from http://tabler-icons.io/i/file-minus -->
  356. <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-inline me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M9 14l6 0" /></svg>
  357. Error pages
  358. </a>
  359. <div class="dropdown-menu">
  360. <a href="../error-404.html" class="dropdown-item">
  361. 404 page
  362. </a>
  363. <a href="../error-500.html" class="dropdown-item">
  364. 500 page
  365. </a>
  366. <a href="../error-maintenance.html" class="dropdown-item">
  367. Maintenance page
  368. </a>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </li>
  375. <li class="nav-item">
  376. <a class="nav-link" href="../form-elements.html" >
  377. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/checkbox -->
  378. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 11l3 3l8 -8" /><path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9" /></svg>
  379. </span>
  380. <span class="nav-link-title">
  381. Form elements
  382. </span>
  383. </a>
  384. </li>
  385. <li class="nav-item dropdown">
  386. <a class="nav-link dropdown-toggle" href="#navbar-extra" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  387. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/star -->
  388. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" /></svg>
  389. </span>
  390. <span class="nav-link-title">
  391. Extra
  392. </span>
  393. </a>
  394. <div class="dropdown-menu">
  395. <div class="dropdown-menu-columns">
  396. <div class="dropdown-menu-column">
  397. <a class="dropdown-item" href="../activity.html">
  398. Activity
  399. </a>
  400. <a class="dropdown-item" href="../gallery.html">
  401. Gallery
  402. </a>
  403. <a class="dropdown-item" href="../invoice.html">
  404. Invoice
  405. </a>
  406. <a class="dropdown-item" href="../search-results.html">
  407. Search results
  408. </a>
  409. <a class="dropdown-item" href="../pricing.html">
  410. Pricing cards
  411. </a>
  412. <a class="dropdown-item" href="../pricing-table.html">
  413. Pricing table
  414. </a>
  415. <a class="dropdown-item" href="../faq.html">
  416. FAQ
  417. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  418. </a>
  419. <a class="dropdown-item" href="../users.html">
  420. Users
  421. </a>
  422. <a class="dropdown-item" href="../license.html">
  423. License
  424. </a>
  425. <a class="dropdown-item" href="../logs.html">
  426. Logs
  427. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  428. </a>
  429. </div>
  430. <div class="dropdown-menu-column">
  431. <a class="dropdown-item" href="../music.html">
  432. Music
  433. </a>
  434. <a class="dropdown-item" href="../photogrid.html">
  435. Photogrid
  436. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  437. </a>
  438. <a class="dropdown-item" href="../tasks.html">
  439. Tasks
  440. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  441. </a>
  442. <a class="dropdown-item" href="../uptime.html">
  443. Uptime monitor
  444. </a>
  445. <a class="dropdown-item" href="../widgets.html">
  446. Widgets
  447. </a>
  448. <a class="dropdown-item" href="../wizard.html">
  449. Wizard
  450. </a>
  451. <a class="dropdown-item" href="../settings.html">
  452. Settings
  453. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  454. </a>
  455. <a class="dropdown-item" href="../trial-ended.html">
  456. Trial ended
  457. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  458. </a>
  459. <a class="dropdown-item" href="../job-listing.html">
  460. Job listing
  461. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  462. </a>
  463. <a class="dropdown-item" href="../page-loader.html">
  464. Page loader
  465. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  466. </a>
  467. </div>
  468. </div>
  469. </div>
  470. </li>
  471. <li class="nav-item dropdown">
  472. <a class="nav-link dropdown-toggle" href="#navbar-layout" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  473. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/layout-2 -->
  474. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /><path d="M14 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z" /></svg>
  475. </span>
  476. <span class="nav-link-title">
  477. Layout
  478. </span>
  479. </a>
  480. <div class="dropdown-menu">
  481. <div class="dropdown-menu-columns">
  482. <div class="dropdown-menu-column">
  483. <a class="dropdown-item" href="../layout-horizontal.html">
  484. Horizontal
  485. </a>
  486. <a class="dropdown-item" href="../layout-boxed.html">
  487. Boxed
  488. <span class="badge badge-sm bg-green-lt text-uppercase ms-auto">New</span>
  489. </a>
  490. <a class="dropdown-item" href="../layout-vertical.html">
  491. Vertical
  492. </a>
  493. <a class="dropdown-item" href="../layout-vertical-transparent.html">
  494. Vertical transparent
  495. </a>
  496. <a class="dropdown-item" href="../layout-vertical-right.html">
  497. Right vertical
  498. </a>
  499. <a class="dropdown-item" href="../layout-condensed.html">
  500. Condensed
  501. </a>
  502. <a class="dropdown-item" href="../layout-combo.html">
  503. Combined
  504. </a>
  505. </div>
  506. <div class="dropdown-menu-column">
  507. <a class="dropdown-item" href="../layout-navbar-dark.html">
  508. Navbar dark
  509. </a>
  510. <a class="dropdown-item" href="../layout-navbar-sticky.html">
  511. Navbar sticky
  512. </a>
  513. <a class="dropdown-item" href="../layout-navbar-overlap.html">
  514. Navbar overlap
  515. </a>
  516. <a class="dropdown-item" href="../layout-rtl.html">
  517. RTL mode
  518. </a>
  519. <a class="dropdown-item" href="../layout-fluid.html">
  520. Fluid
  521. </a>
  522. <a class="dropdown-item" href="../layout-fluid-vertical.html">
  523. Fluid vertical
  524. </a>
  525. </div>
  526. </div>
  527. </div>
  528. </li>
  529. <li class="nav-item">
  530. <a class="nav-link" href="../icons.html" >
  531. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/ghost -->
  532. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 11a7 7 0 0 1 14 0v7a1.78 1.78 0 0 1 -3.1 1.4a1.65 1.65 0 0 0 -2.6 0a1.65 1.65 0 0 1 -2.6 0a1.65 1.65 0 0 0 -2.6 0a1.78 1.78 0 0 1 -3.1 -1.4v-7" /><path d="M10 10l.01 0" /><path d="M14 10l.01 0" /><path d="M10 14a3.5 3.5 0 0 0 4 0" /></svg>
  533. </span>
  534. <span class="nav-link-title">
  535. 3222 icons
  536. </span>
  537. </a>
  538. </li>
  539. <li class="nav-item active dropdown">
  540. <a class="nav-link dropdown-toggle" href="#navbar-help" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false" >
  541. <span class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from http://tabler-icons.io/i/lifebuoy -->
  542. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /><path d="M15 15l3.35 3.35" /><path d="M9 15l-3.35 3.35" /><path d="M5.65 5.65l3.35 3.35" /><path d="M18.35 5.65l-3.35 3.35" /></svg>
  543. </span>
  544. <span class="nav-link-title">
  545. Help
  546. </span>
  547. </a>
  548. <div class="dropdown-menu">
  549. <a class="dropdown-item" href="../docs/">
  550. Documentation
  551. </a>
  552. <a class="dropdown-item" href="../changelog.html">
  553. Changelog
  554. </a>
  555. <a class="dropdown-item" href="https://github.com/tabler/tabler" target="_blank" rel="noopener">
  556. Source code
  557. </a>
  558. <a class="dropdown-item text-pink" href="https://github.com/sponsors/codecalm" target="_blank" rel="noopener">
  559. <!-- Download SVG icon from http://tabler-icons.io/i/heart -->
  560. <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-inline me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" /></svg>
  561. Sponsor project!
  562. </a>
  563. </div>
  564. </li>
  565. </ul>
  566. <div class="my-2 my-md-0 flex-grow-1 flex-md-grow-0 order-first order-md-last">
  567. <form action="../" method="get" autocomplete="off" novalidate>
  568. <div class="input-icon">
  569. <span class="input-icon-addon">
  570. <!-- Download SVG icon from http://tabler-icons.io/i/search -->
  571. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>
  572. </span>
  573. <input type="text" value="" class="form-control" placeholder="Search…" aria-label="Search in website">
  574. </div>
  575. </form>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. </header>
  581. <div class="page-wrapper">
  582. <!-- Page header -->
  583. <div class="page-header d-print-none">
  584. <div class="container-xl">
  585. <div class="row g-2 align-items-center">
  586. <div class="col">
  587. <h2 class="page-title">
  588. Documentation
  589. </h2>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. <!-- Page body -->
  595. <div class="page-body">
  596. <div class="container-xl">
  597. <div class="row gx-lg-5">
  598. <div class="d-none d-lg-block col-lg-3">
  599. <ul class="nav nav-pills nav-vertical">
  600. <li class="nav-item">
  601. <a href="../docs/" class="nav-link">
  602. Introduction
  603. </a>
  604. </li>
  605. <li class="nav-item">
  606. <a href="#menu-base" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  607. Getting started
  608. <span class="nav-link-toggle"></span>
  609. </a>
  610. <ul class="nav nav-pills collapse" id="menu-base">
  611. <li class="nav-item">
  612. <a href="../docs/getting-started.html" class="nav-link">
  613. Getting Started
  614. </a>
  615. </li>
  616. <li class="nav-item">
  617. <a href="../docs/download.html" class="nav-link">
  618. Download
  619. </a>
  620. </li>
  621. <li class="nav-item">
  622. <a href="../docs/browser-support.html" class="nav-link">
  623. Browser Support
  624. </a>
  625. </li>
  626. </ul>
  627. </li>
  628. <li class="nav-item">
  629. <a href="#menu-content" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  630. Content
  631. <span class="nav-link-toggle"></span>
  632. </a>
  633. <ul class="nav nav-pills collapse" id="menu-content">
  634. <li class="nav-item">
  635. <a href="../docs/colors.html" class="nav-link">
  636. Colors
  637. </a>
  638. </li>
  639. <li class="nav-item">
  640. <a href="../docs/typography.html" class="nav-link">
  641. Typography
  642. </a>
  643. </li>
  644. <li class="nav-item">
  645. <a href="../docs/icons.html" class="nav-link">
  646. Icons
  647. </a>
  648. </li>
  649. <li class="nav-item">
  650. <a href="../docs/customize.html" class="nav-link">
  651. Customize Tabler
  652. </a>
  653. </li>
  654. </ul>
  655. </li>
  656. <li class="nav-item">
  657. <a href="#menu-layout" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  658. Layout
  659. <span class="nav-link-toggle"></span>
  660. </a>
  661. <ul class="nav nav-pills collapse" id="menu-layout">
  662. <li class="nav-item">
  663. <a href="../docs/page-headers.html" class="nav-link">
  664. Page headers
  665. </a>
  666. </li>
  667. </ul>
  668. </li>
  669. <li class="nav-item">
  670. <a href="#menu-forms" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  671. Form components
  672. <span class="nav-link-toggle"></span>
  673. </a>
  674. <ul class="nav nav-pills collapse" id="menu-forms">
  675. <li class="nav-item">
  676. <a href="../docs/form-elements.html" class="nav-link">
  677. Form elements
  678. </a>
  679. </li>
  680. <li class="nav-item">
  681. <a href="../docs/form-helpers.html" class="nav-link">
  682. Form helpers
  683. </a>
  684. </li>
  685. <li class="nav-item">
  686. <a href="../docs/form-validation.html" class="nav-link">
  687. Validation states
  688. </a>
  689. </li>
  690. <li class="nav-item">
  691. <a href="../docs/form-image-check.html" class="nav-link">
  692. Image check
  693. </a>
  694. </li>
  695. <li class="nav-item">
  696. <a href="../docs/form-color-check.html" class="nav-link">
  697. Color check
  698. </a>
  699. </li>
  700. <li class="nav-item">
  701. <a href="../docs/form-selectboxes.html" class="nav-link">
  702. Form selectboxes
  703. </a>
  704. </li>
  705. <li class="nav-item">
  706. <a href="../docs/form-fieldset.html" class="nav-link">
  707. Form fieldset
  708. </a>
  709. </li>
  710. </ul>
  711. </li>
  712. <li class="nav-item">
  713. <a href="#menu-components" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  714. Components
  715. <span class="nav-link-toggle"></span>
  716. </a>
  717. <ul class="nav nav-pills collapse" id="menu-components">
  718. <li class="nav-item">
  719. <a href="../docs/alerts.html" class="nav-link">
  720. Alerts
  721. </a>
  722. </li>
  723. <li class="nav-item">
  724. <a href="../docs/avatars.html" class="nav-link">
  725. Avatars
  726. </a>
  727. </li>
  728. <li class="nav-item">
  729. <a href="../docs/badges.html" class="nav-link">
  730. Badges
  731. </a>
  732. </li>
  733. <li class="nav-item">
  734. <a href="../docs/breadcrumb.html" class="nav-link">
  735. Breadcrumb
  736. </a>
  737. </li>
  738. <li class="nav-item">
  739. <a href="../docs/buttons.html" class="nav-link">
  740. Buttons
  741. </a>
  742. </li>
  743. <li class="nav-item">
  744. <a href="../docs/cards.html" class="nav-link">
  745. Cards
  746. </a>
  747. </li>
  748. <li class="nav-item">
  749. <a href="../docs/carousel.html" class="nav-link">
  750. Carousel
  751. </a>
  752. </li>
  753. <li class="nav-item">
  754. <a href="../docs/datagrid.html" class="nav-link">
  755. Data grid
  756. </a>
  757. </li>
  758. <li class="nav-item">
  759. <a href="../docs/dropdowns.html" class="nav-link">
  760. Dropdowns
  761. </a>
  762. </li>
  763. <li class="nav-item">
  764. <a href="../docs/divider.html" class="nav-link">
  765. Divider
  766. </a>
  767. </li>
  768. <li class="nav-item">
  769. <a href="../docs/empty.html" class="nav-link">
  770. Empty states
  771. </a>
  772. </li>
  773. <li class="nav-item">
  774. <a href="../docs/modals.html" class="nav-link">
  775. Modals
  776. </a>
  777. </li>
  778. <li class="nav-item">
  779. <a href="../docs/page-headers.html" class="nav-link">
  780. Page headers
  781. </a>
  782. </li>
  783. <li class="nav-item">
  784. <a href="../docs/progress.html" class="nav-link">
  785. Progress
  786. </a>
  787. </li>
  788. <li class="nav-item">
  789. <a href="../docs/range-slider.html" class="nav-link">
  790. Range slider
  791. </a>
  792. </li>
  793. <li class="nav-item">
  794. <a href="../docs/ribbons.html" class="nav-link">
  795. Ribbons
  796. </a>
  797. </li>
  798. <li class="nav-item">
  799. <a href="../docs/placeholder.html" class="nav-link">
  800. Placeholder
  801. </a>
  802. </li>
  803. <li class="nav-item">
  804. <a href="../docs/spinners.html" class="nav-link">
  805. Spinners
  806. </a>
  807. </li>
  808. <li class="nav-item">
  809. <a href="../docs/statuses.html" class="nav-link">
  810. Statuses
  811. </a>
  812. </li>
  813. <li class="nav-item">
  814. <a href="../docs/steps.html" class="nav-link">
  815. Steps
  816. </a>
  817. </li>
  818. <li class="nav-item">
  819. <a href="../docs/switch-icon.html" class="nav-link">
  820. Switch icon
  821. </a>
  822. </li>
  823. <li class="nav-item">
  824. <a href="../docs/tables.html" class="nav-link">
  825. Tables
  826. </a>
  827. </li>
  828. <li class="nav-item">
  829. <a href="../docs/tabs.html" class="nav-link">
  830. Tabs
  831. </a>
  832. </li>
  833. <li class="nav-item">
  834. <a href="../docs/timelines.html" class="nav-link">
  835. Timelines
  836. </a>
  837. </li>
  838. <li class="nav-item">
  839. <a href="../docs/toasts.html" class="nav-link">
  840. Toasts
  841. </a>
  842. </li>
  843. <li class="nav-item">
  844. <a href="../docs/tracking.html" class="nav-link">
  845. Tracking
  846. </a>
  847. </li>
  848. <li class="nav-item">
  849. <a href="../docs/tooltips.html" class="nav-link">
  850. Tooltips
  851. </a>
  852. </li>
  853. <li class="nav-item">
  854. <a href="../docs/popover.html" class="nav-link">
  855. Popover
  856. </a>
  857. </li>
  858. </ul>
  859. </li>
  860. <li class="nav-item">
  861. <a href="#menu-utils" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  862. Utilities
  863. <span class="nav-link-toggle"></span>
  864. </a>
  865. <ul class="nav nav-pills collapse" id="menu-utils">
  866. <li class="nav-item">
  867. <a href="../docs/borders.html" class="nav-link">
  868. Borders
  869. </a>
  870. </li>
  871. <li class="nav-item">
  872. <a href="../docs/cursors.html" class="nav-link">
  873. Cursors
  874. </a>
  875. </li>
  876. <li class="nav-item">
  877. <a href="../docs/interactions.html" class="nav-link">
  878. Interactions
  879. </a>
  880. </li>
  881. </ul>
  882. </li>
  883. <li class="nav-item">
  884. <a href="#menu-plugins" class="nav-link" data-bs-toggle="collapse" aria-expanded="false">
  885. Plugins
  886. <span class="nav-link-toggle"></span>
  887. </a>
  888. <ul class="nav nav-pills collapse" id="menu-plugins">
  889. <li class="nav-item">
  890. <a href="../docs/autosize.html" class="nav-link">
  891. Autosize
  892. </a>
  893. </li>
  894. <li class="nav-item">
  895. <a href="../docs/input-mask.html" class="nav-link">
  896. Form input mask
  897. </a>
  898. </li>
  899. <li class="nav-item">
  900. <a href="../docs/flags.html" class="nav-link">
  901. Flags
  902. </a>
  903. </li>
  904. <li class="nav-item">
  905. <a href="../docs/payments.html" class="nav-link">
  906. Payments
  907. </a>
  908. </li>
  909. <li class="nav-item">
  910. <a href="../docs/charts.html" class="nav-link">
  911. Charts
  912. </a>
  913. </li>
  914. <li class="nav-item">
  915. <a href="../docs/dropzone.html" class="nav-link">
  916. Dropzone
  917. </a>
  918. </li>
  919. <li class="nav-item">
  920. <a href="../docs/inline-player.html" class="nav-link">
  921. Inline player
  922. </a>
  923. </li>
  924. <li class="nav-item">
  925. <a href="../docs/tinymce.html" class="nav-link">
  926. TinyMCE
  927. </a>
  928. </li>
  929. </ul>
  930. </li>
  931. <li class="nav-item">
  932. <a href="../changelog.html" class="nav-link">
  933. Changelog
  934. <span class="badge bg-primary-lt ms-auto">1.0.0-beta17</span>
  935. </a>
  936. </li>
  937. </ul>
  938. </div>
  939. <div class="col-lg-9">
  940. <div class="card card-lg">
  941. <div class="card-body">
  942. <div class="markdown">
  943. <div>
  944. <div class="d-flex mb-3">
  945. <h1 class="m-0">Form elements</h1>
  946. <p class="ms-auto">
  947. <a href="https://getbootstrap.com/docs/5.0/components/forms/" target="_blank" class="d-flex align-items-center">
  948. <!-- Download SVG icon from http://tabler-icons.io/i/external-link -->
  949. <svg xmlns="http://www.w3.org/2000/svg" class="icon pe-1 text-primary" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" /><path d="M10 14l10 -10" /><path d="M15 4l5 0l0 5" /></svg>
  950. Bootstrap documentation
  951. </a>
  952. </p>
  953. </div>
  954. <p class="h3 fw-normal mb-4 text-muted">Forms are one of the most important types of interaction with a website or app. Since their aim is to enable users to make a purchase, subscribe to a service or sign up to create an account, it's important to make sure they are easy to complete and help increase conversion rates. Use the available elements to create forms which are well-structured and user-friendly.</p>
  955. </div>
  956. <h2 id="classic-inputs">Classic inputs</h2>
  957. <p>Use classic, user-friendly inputs, label them appropriately and include input placeholders that will help users avoid confusion when completing a form.</p>
  958. <div class="example no_toc_section">
  959. <div class="example-content">
  960. <div class="mb-3">
  961. <label class="form-label">Text</label>
  962. <input type="text" class="form-control" name="example-text-input" placeholder="Input placeholder" />
  963. </div>
  964. <div class="mb-3">
  965. <label class="form-label">Password</label>
  966. <input type="text" class="form-control" name="example-password-input" placeholder="Input placeholder" />
  967. </div>
  968. </div>
  969. </div>
  970. <div class="example-code">
  971. <figure class="highlight">
  972. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  973. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Text<span class="nt">&lt;/label&gt;</span>
  974. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">name=</span><span class="s">"example-text-input"</span> <span class="na">placeholder=</span><span class="s">"Input placeholder"</span><span class="nt">&gt;</span>
  975. <span class="nt">&lt;/div&gt;</span>
  976. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  977. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Password<span class="nt">&lt;/label&gt;</span>
  978. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">name=</span><span class="s">"example-password-input"</span> <span class="na">placeholder=</span><span class="s">"Input placeholder"</span><span class="nt">&gt;</span>
  979. <span class="nt">&lt;/div&gt;</span></code></pre>
  980. </figure>
  981. </div>
  982. <h2 id="form-control-rounded">Form control rounded</h2>
  983. <p>Use the <code class="language-plaintext highlighter-rouge">form-control-rounded</code> class if you prefer form controls with rounded corners.</p>
  984. <div class="example no_toc_section">
  985. <div class="example-content">
  986. <div class="mb-3">
  987. <label class="form-label">Form control rounded</label>
  988. <input type="text" class="form-control form-control-rounded mb-2" name="Form control rounded" placeholder="Text.." />
  989. <div class="input-icon">
  990. <input type="text" value="" class="form-control form-control-rounded" placeholder="Search…" />
  991. <span class="input-icon-addon">
  992. <!-- Download SVG icon from http://tabler-icons.io/i/search -->
  993. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>
  994. </span>
  995. </div>
  996. </div>
  997. </div>
  998. </div>
  999. <div class="example-code">
  1000. <figure class="highlight">
  1001. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1002. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Form control rounded<span class="nt">&lt;/label&gt;</span>
  1003. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control form-control-rounded mb-2"</span> <span class="na">name=</span><span class="s">"Form control rounded"</span> <span class="na">placeholder=</span><span class="s">"Text.."</span><span class="nt">&gt;</span>
  1004. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-icon"</span><span class="nt">&gt;</span>
  1005. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">value=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"form-control form-control-rounded"</span> <span class="na">placeholder=</span><span class="s">"Search…"</span><span class="nt">&gt;</span>
  1006. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-icon-addon"</span><span class="nt">&gt;</span>
  1007. <span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/search --&gt;</span>
  1008. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M21 21l-6 -6"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1009. <span class="nt">&lt;/span&gt;</span>
  1010. <span class="nt">&lt;/div&gt;</span>
  1011. <span class="nt">&lt;/div&gt;</span></code></pre>
  1012. </figure>
  1013. </div>
  1014. <h2 id="form-control-flush">Form control flush</h2>
  1015. <p>You can remove borders from your form control by adding the <code class="language-plaintext highlighter-rouge">form-control-flush</code> class.</p>
  1016. <div class="example no_toc_section">
  1017. <div class="example-content">
  1018. <div class="mb-3">
  1019. <label class="form-label">Form control flush</label>
  1020. <input type="text" class="form-control form-control-flush" name="Form control flush" placeholder="Text.." />
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <div class="example-code">
  1025. <figure class="highlight">
  1026. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1027. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Form control flush<span class="nt">&lt;/label&gt;</span>
  1028. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control form-control-flush"</span> <span class="na">name=</span><span class="s">"Form control flush"</span> <span class="na">placeholder=</span><span class="s">"Text.."</span><span class="nt">&gt;</span>
  1029. <span class="nt">&lt;/div&gt;</span></code></pre>
  1030. </figure>
  1031. </div>
  1032. <h2 id="input-with-icon">Input with icon</h2>
  1033. <p>Add icons to your input controls to suggest users what they should enter or inform them of the current state of a form element.</p>
  1034. <div class="example no_toc_section">
  1035. <div class="example-content">
  1036. <div class="mb-3">
  1037. <label class="form-label">Icon input</label>
  1038. <div class="input-icon mb-3">
  1039. <input type="text" value="" class="form-control" placeholder="Search…" />
  1040. <span class="input-icon-addon">
  1041. <!-- Download SVG icon from http://tabler-icons.io/i/search -->
  1042. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>
  1043. </span>
  1044. </div>
  1045. <div class="input-icon mb-3">
  1046. <span class="input-icon-addon">
  1047. <!-- Download SVG icon from http://tabler-icons.io/i/user -->
  1048. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" /></svg>
  1049. </span>
  1050. <input type="text" value="" class="form-control" placeholder="Username" />
  1051. </div>
  1052. </div>
  1053. <div class="mb-3">
  1054. <label class="form-label">Loader input</label>
  1055. <div class="input-icon mb-3">
  1056. <input type="text" value="" class="form-control" placeholder="Loading…" />
  1057. <span class="input-icon-addon">
  1058. <div class="spinner-border spinner-border-sm text-muted" role="status"></div>
  1059. </span>
  1060. </div>
  1061. <div class="input-icon mb-3">
  1062. <span class="input-icon-addon">
  1063. <div class="spinner-border spinner-border-sm text-muted" role="status"></div>
  1064. </span>
  1065. <input type="text" value="" class="form-control" placeholder="Loading…" />
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. <div class="example-code">
  1071. <figure class="highlight">
  1072. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1073. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Icon input<span class="nt">&lt;/label&gt;</span>
  1074. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-icon mb-3"</span><span class="nt">&gt;</span>
  1075. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">value=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"Search…"</span><span class="nt">&gt;</span>
  1076. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-icon-addon"</span><span class="nt">&gt;</span>
  1077. <span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/search --&gt;</span>
  1078. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M21 21l-6 -6"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1079. <span class="nt">&lt;/span&gt;</span>
  1080. <span class="nt">&lt;/div&gt;</span>
  1081. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-icon mb-3"</span><span class="nt">&gt;</span>
  1082. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-icon-addon"</span><span class="nt">&gt;</span>
  1083. <span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/user --&gt;</span>
  1084. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M12 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1085. <span class="nt">&lt;/span&gt;</span>
  1086. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">value=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"Username"</span><span class="nt">&gt;</span>
  1087. <span class="nt">&lt;/div&gt;</span>
  1088. <span class="nt">&lt;/div&gt;</span>
  1089. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1090. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Loader input<span class="nt">&lt;/label&gt;</span>
  1091. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-icon mb-3"</span><span class="nt">&gt;</span>
  1092. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">value=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"Loading…"</span><span class="nt">&gt;</span>
  1093. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-icon-addon"</span><span class="nt">&gt;</span>
  1094. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"spinner-border spinner-border-sm text-muted"</span> <span class="na">role=</span><span class="s">"status"</span><span class="nt">&gt;&lt;/div&gt;</span>
  1095. <span class="nt">&lt;/span&gt;</span>
  1096. <span class="nt">&lt;/div&gt;</span>
  1097. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-icon mb-3"</span><span class="nt">&gt;</span>
  1098. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-icon-addon"</span><span class="nt">&gt;</span>
  1099. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"spinner-border spinner-border-sm text-muted"</span> <span class="na">role=</span><span class="s">"status"</span><span class="nt">&gt;&lt;/div&gt;</span>
  1100. <span class="nt">&lt;/span&gt;</span>
  1101. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">value=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"Loading…"</span><span class="nt">&gt;</span>
  1102. <span class="nt">&lt;/div&gt;</span>
  1103. <span class="nt">&lt;/div&gt;</span></code></pre>
  1104. </figure>
  1105. </div>
  1106. <h2 id="separated-inputs">Separated inputs</h2>
  1107. <p>Include an additional element in your input section, such as a button which can be used to submit the information enetered in the input control.</p>
  1108. <div class="example no_toc_section">
  1109. <div class="example-content">
  1110. <div class="mb-3">
  1111. <label class="form-label">Separated inputs</label>
  1112. <div class="row g-2">
  1113. <div class="col">
  1114. <input type="text" class="form-control" placeholder="Search for…" />
  1115. </div>
  1116. <div class="col-auto">
  1117. <a href="javascript:void(0)" class="btn btn-icon" aria-label="Button">
  1118. <!-- Download SVG icon from http://tabler-icons.io/i/search -->
  1119. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>
  1120. </a>
  1121. </div>
  1122. </div>
  1123. </div>
  1124. </div>
  1125. </div>
  1126. <div class="example-code">
  1127. <figure class="highlight">
  1128. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1129. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Separated inputs<span class="nt">&lt;/label&gt;</span>
  1130. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"row g-2"</span><span class="nt">&gt;</span>
  1131. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"col"</span><span class="nt">&gt;</span>
  1132. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"Search for…"</span><span class="nt">&gt;</span>
  1133. <span class="nt">&lt;/div&gt;</span>
  1134. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"col-auto"</span><span class="nt">&gt;</span>
  1135. <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"btn btn-icon"</span> <span class="na">aria-label=</span><span class="s">"Button"</span><span class="nt">&gt;</span>
  1136. <span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/search --&gt;</span>
  1137. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M21 21l-6 -6"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1138. <span class="nt">&lt;/a&gt;</span>
  1139. <span class="nt">&lt;/div&gt;</span>
  1140. <span class="nt">&lt;/div&gt;</span>
  1141. <span class="nt">&lt;/div&gt;</span></code></pre>
  1142. </figure>
  1143. </div>
  1144. <h2 id="textarea-and-select">Textarea and select</h2>
  1145. <p>Use a multi-line text input control to enable users to enter longer pieces of text. The control will automatically adjust to the length of the text entered.</p>
  1146. <p>Add one of the available selects - either a dropdown or a multiple choice select - to let users choose from a predefined set of options.</p>
  1147. <div class="example no_toc_section">
  1148. <div class="example-content">
  1149. <div class="mb-3">
  1150. <label class="form-label">Textarea</label>
  1151. <textarea class="form-control" name="example-textarea" placeholder="Textarea placeholder"></textarea>
  1152. </div>
  1153. <div class="mb-3">
  1154. <div class="form-label">Select</div>
  1155. <select class="form-select">
  1156. <option value="1">One</option>
  1157. <option value="2">Two</option>
  1158. <option value="3">Three</option>
  1159. </select>
  1160. </div>
  1161. <div class="mb-3">
  1162. <div class="form-label">Select multiple</div>
  1163. <select class="form-select" multiple="">
  1164. <option value="1">One</option>
  1165. <option value="2">Two</option>
  1166. <option value="3">Three</option>
  1167. </select>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. <div class="example-code">
  1172. <figure class="highlight">
  1173. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1174. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Textarea<span class="nt">&lt;/label&gt;</span>
  1175. <span class="nt">&lt;textarea</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">name=</span><span class="s">"example-textarea"</span> <span class="na">placeholder=</span><span class="s">"Textarea placeholder"</span><span class="nt">&gt;&lt;/textarea&gt;</span>
  1176. <span class="nt">&lt;/div&gt;</span>
  1177. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1178. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Select<span class="nt">&lt;/div&gt;</span>
  1179. <span class="nt">&lt;select</span> <span class="na">class=</span><span class="s">"form-select"</span> <span class="nt">&gt;</span>
  1180. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"1"</span><span class="nt">&gt;</span>One<span class="nt">&lt;/option&gt;</span>
  1181. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"2"</span><span class="nt">&gt;</span>Two<span class="nt">&lt;/option&gt;</span>
  1182. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"3"</span><span class="nt">&gt;</span>Three<span class="nt">&lt;/option&gt;</span>
  1183. <span class="nt">&lt;/select&gt;</span>
  1184. <span class="nt">&lt;/div&gt;</span>
  1185. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1186. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Select multiple<span class="nt">&lt;/div&gt;</span>
  1187. <span class="nt">&lt;select</span> <span class="na">class=</span><span class="s">"form-select"</span> <span class="na">multiple</span><span class="nt">&gt;</span>
  1188. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"1"</span><span class="nt">&gt;</span>One<span class="nt">&lt;/option&gt;</span>
  1189. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"2"</span><span class="nt">&gt;</span>Two<span class="nt">&lt;/option&gt;</span>
  1190. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"3"</span><span class="nt">&gt;</span>Three<span class="nt">&lt;/option&gt;</span>
  1191. <span class="nt">&lt;/select&gt;</span>
  1192. <span class="nt">&lt;/div&gt;</span></code></pre>
  1193. </figure>
  1194. </div>
  1195. <h2 id="input-size">Input size</h2>
  1196. <p>Choose the size of an input control that will go well with your form design. Apart from the default size, you can also use small and large input controls.</p>
  1197. <div class="example no_toc_section">
  1198. <div class="example-content">
  1199. <div class="mb-3">
  1200. <label class="form-label">Input sizing</label>
  1201. <input class="form-control form-control-lg mb-2" type="text" placeholder=".form-control-lg" />
  1202. <input class="form-control mb-2" type="text" placeholder="Default input" />
  1203. <input class="form-control form-control-sm" type="text" placeholder=".form-control-sm" />
  1204. </div>
  1205. </div>
  1206. </div>
  1207. <div class="example-code">
  1208. <figure class="highlight">
  1209. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1210. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input sizing<span class="nt">&lt;/label&gt;</span>
  1211. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-control form-control-lg mb-2"</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">".form-control-lg"</span><span class="nt">&gt;</span>
  1212. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-control mb-2"</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"Default input"</span><span class="nt">&gt;</span>
  1213. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-control form-control-sm"</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">".form-control-sm"</span><span class="nt">&gt;</span>
  1214. <span class="nt">&lt;/div&gt;</span></code></pre>
  1215. </figure>
  1216. </div>
  1217. <h2 id="datalists">Datalists</h2>
  1218. <p>Use the <code class="language-plaintext highlighter-rouge">datalist</code> element to add an autocomplete feature to your input control. The list of available options will display once a user starts to type and will make it quicker to complete form sections.</p>
  1219. <div class="example no_toc_section">
  1220. <div class="example-content">
  1221. <div class="mb-3">
  1222. <label class="form-label">Datalist example</label>
  1223. <input class="form-control" list="datalistOptions" placeholder="Type to search..." />
  1224. <datalist id="datalistOptions">
  1225. <option value="Aruba" />
  1226. <option value="Afghanistan" />
  1227. <option value="Angola" />
  1228. <option value="Anguilla" />
  1229. <option value="Albania" />
  1230. <option value="Andorra" />
  1231. <option value="United Arab Emirates" />
  1232. <option value="Argentina" />
  1233. <option value="Armenia" />
  1234. <option value="American Samoa" />
  1235. </datalist>
  1236. </div>
  1237. </div>
  1238. </div>
  1239. <div class="example-code">
  1240. <figure class="highlight">
  1241. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1242. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Datalist example<span class="nt">&lt;/label&gt;</span>
  1243. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">list=</span><span class="s">"datalistOptions"</span> <span class="na">placeholder=</span><span class="s">"Type to search..."</span><span class="nt">/&gt;</span>
  1244. <span class="nt">&lt;datalist</span> <span class="na">id=</span><span class="s">"datalistOptions"</span><span class="nt">&gt;</span>
  1245. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Aruba"</span><span class="nt">/&gt;</span>
  1246. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Afghanistan"</span><span class="nt">/&gt;</span>
  1247. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Angola"</span><span class="nt">/&gt;</span>
  1248. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Anguilla"</span><span class="nt">/&gt;</span>
  1249. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Albania"</span><span class="nt">/&gt;</span>
  1250. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Andorra"</span><span class="nt">/&gt;</span>
  1251. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"United Arab Emirates"</span><span class="nt">/&gt;</span>
  1252. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Argentina"</span><span class="nt">/&gt;</span>
  1253. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"Armenia"</span><span class="nt">/&gt;</span>
  1254. <span class="nt">&lt;option</span> <span class="na">value=</span><span class="s">"American Samoa"</span><span class="nt">/&gt;</span>
  1255. <span class="nt">&lt;/datalist&gt;</span>
  1256. <span class="nt">&lt;/div&gt;</span></code></pre>
  1257. </figure>
  1258. </div>
  1259. <h2 id="toggle-switches">Toggle switches</h2>
  1260. <p>Use toggle switches for the elements of your form which require choosing between two opposing states.</p>
  1261. <div class="example no_toc_section">
  1262. <div class="example-content">
  1263. <div class="mb-3">
  1264. <div class="form-label">Toggle switches</div>
  1265. <label class="form-check form-switch">
  1266. <input class="form-check-input" type="checkbox" checked="" />
  1267. <span class="form-check-label">Option 1</span>
  1268. </label>
  1269. <label class="form-check form-switch">
  1270. <input class="form-check-input" type="checkbox" />
  1271. <span class="form-check-label">Option 2</span>
  1272. </label>
  1273. <label class="form-check form-switch">
  1274. <input class="form-check-input" type="checkbox" />
  1275. <span class="form-check-label">Option 3</span>
  1276. </label>
  1277. </div>
  1278. <div class="mb-3">
  1279. <div class="form-label">Single switch</div>
  1280. <label class="form-check form-switch">
  1281. <input class="form-check-input" type="checkbox" />
  1282. <span class="form-check-label">I agree with terms and conditions</span>
  1283. </label>
  1284. </div>
  1285. </div>
  1286. </div>
  1287. <div class="example-code">
  1288. <figure class="highlight">
  1289. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1290. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Toggle switches<span class="nt">&lt;/div&gt;</span>
  1291. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-switch"</span><span class="nt">&gt;</span>
  1292. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1293. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 1<span class="nt">&lt;/span&gt;</span>
  1294. <span class="nt">&lt;/label&gt;</span>
  1295. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-switch"</span><span class="nt">&gt;</span>
  1296. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="nt">&gt;</span>
  1297. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 2<span class="nt">&lt;/span&gt;</span>
  1298. <span class="nt">&lt;/label&gt;</span>
  1299. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-switch"</span><span class="nt">&gt;</span>
  1300. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="nt">&gt;</span>
  1301. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 3<span class="nt">&lt;/span&gt;</span>
  1302. <span class="nt">&lt;/label&gt;</span>
  1303. <span class="nt">&lt;/div&gt;</span>
  1304. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1305. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Single switch<span class="nt">&lt;/div&gt;</span>
  1306. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-switch"</span><span class="nt">&gt;</span>
  1307. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="nt">&gt;</span>
  1308. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>I agree with terms and conditions<span class="nt">&lt;/span&gt;</span>
  1309. <span class="nt">&lt;/label&gt;</span>
  1310. <span class="nt">&lt;/div&gt;</span></code></pre>
  1311. </figure>
  1312. </div>
  1313. <h2 id="radios">Radios</h2>
  1314. <p>Use radio buttons for the parts of your form which require users to choose one option from a set of two or more mutually exclusive options.</p>
  1315. <div class="example no_toc_section">
  1316. <div class="example-content">
  1317. <div class="mb-3">
  1318. <div class="form-label">Radios</div>
  1319. <div>
  1320. <label class="form-check">
  1321. <input class="form-check-input" type="radio" name="radios" checked="" />
  1322. <span class="form-check-label">Option 1</span>
  1323. </label>
  1324. <label class="form-check">
  1325. <input class="form-check-input" type="radio" name="radios" />
  1326. <span class="form-check-label">Option 2</span>
  1327. </label>
  1328. <label class="form-check">
  1329. <input class="form-check-input" type="radio" disabled="" />
  1330. <span class="form-check-label">Option 3</span>
  1331. </label>
  1332. <label class="form-check">
  1333. <input class="form-check-input" type="radio" checked="" disabled="" />
  1334. <span class="form-check-label">Option 4</span>
  1335. </label>
  1336. </div>
  1337. </div>
  1338. <div class="mb-3">
  1339. <div class="form-label">Inline Radios</div>
  1340. <div>
  1341. <label class="form-check form-check-inline">
  1342. <input class="form-check-input" type="radio" name="radios-inline" checked="" />
  1343. <span class="form-check-label">Option 1</span>
  1344. </label>
  1345. <label class="form-check form-check-inline">
  1346. <input class="form-check-input" type="radio" name="radios-inline" />
  1347. <span class="form-check-label">Option 2</span>
  1348. </label>
  1349. <label class="form-check form-check-inline">
  1350. <input class="form-check-input" type="radio" name="radios-inline" disabled="" />
  1351. <span class="form-check-label">Option 3</span>
  1352. </label>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. </div>
  1357. <div class="example-code">
  1358. <figure class="highlight">
  1359. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1360. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Radios<span class="nt">&lt;/div&gt;</span>
  1361. <span class="nt">&lt;div&gt;</span>
  1362. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1363. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span>
  1364. <span class="na">name=</span><span class="s">"radios"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1365. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 1<span class="nt">&lt;/span&gt;</span>
  1366. <span class="nt">&lt;/label&gt;</span>
  1367. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1368. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span>
  1369. <span class="na">name=</span><span class="s">"radios"</span> <span class="nt">&gt;</span>
  1370. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 2<span class="nt">&lt;/span&gt;</span>
  1371. <span class="nt">&lt;/label&gt;</span>
  1372. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1373. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">disabled</span><span class="nt">&gt;</span>
  1374. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 3<span class="nt">&lt;/span&gt;</span>
  1375. <span class="nt">&lt;/label&gt;</span>
  1376. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1377. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span> <span class="na">disabled</span><span class="nt">&gt;</span>
  1378. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 4<span class="nt">&lt;/span&gt;</span>
  1379. <span class="nt">&lt;/label&gt;</span>
  1380. <span class="nt">&lt;/div&gt;</span>
  1381. <span class="nt">&lt;/div&gt;</span>
  1382. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1383. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Inline Radios<span class="nt">&lt;/div&gt;</span>
  1384. <span class="nt">&lt;div&gt;</span>
  1385. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1386. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span>
  1387. <span class="na">name=</span><span class="s">"radios-inline"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1388. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 1<span class="nt">&lt;/span&gt;</span>
  1389. <span class="nt">&lt;/label&gt;</span>
  1390. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1391. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span>
  1392. <span class="na">name=</span><span class="s">"radios-inline"</span> <span class="nt">&gt;</span>
  1393. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 2<span class="nt">&lt;/span&gt;</span>
  1394. <span class="nt">&lt;/label&gt;</span>
  1395. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1396. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"radio"</span>
  1397. <span class="na">name=</span><span class="s">"radios-inline"</span> <span class="na">disabled</span><span class="nt">&gt;</span>
  1398. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 3<span class="nt">&lt;/span&gt;</span>
  1399. <span class="nt">&lt;/label&gt;</span>
  1400. <span class="nt">&lt;/div&gt;</span>
  1401. <span class="nt">&lt;/div&gt;</span></code></pre>
  1402. </figure>
  1403. </div>
  1404. <h2 id="checkboxes">Checkboxes</h2>
  1405. <p>Use checkoxes if you want to allow users to select more than one option from a set of predefined options or to turn an option on or off.</p>
  1406. <div class="example no_toc_section">
  1407. <div class="example-content">
  1408. <div class="mb-3">
  1409. <div class="form-label">Checkboxes</div>
  1410. <div>
  1411. <label class="form-check">
  1412. <input class="form-check-input" type="checkbox" />
  1413. <span class="form-check-label">Checkbox input</span>
  1414. </label>
  1415. <label class="form-check">
  1416. <input class="form-check-input" type="checkbox" disabled="" />
  1417. <span class="form-check-label">Disabled checkbox input</span>
  1418. </label>
  1419. <label class="form-check">
  1420. <input class="form-check-input" type="checkbox" checked="" />
  1421. <span class="form-check-label">Checked checkbox input</span>
  1422. </label>
  1423. </div>
  1424. </div>
  1425. <div class="mb-3">
  1426. <div class="form-label">Inline Checkboxes</div>
  1427. <div>
  1428. <label class="form-check form-check-inline">
  1429. <input class="form-check-input" type="checkbox" />
  1430. <span class="form-check-label">Option 1</span>
  1431. </label>
  1432. <label class="form-check form-check-inline">
  1433. <input class="form-check-input" type="checkbox" disabled="" />
  1434. <span class="form-check-label">Option 2</span>
  1435. </label>
  1436. <label class="form-check form-check-inline">
  1437. <input class="form-check-input" type="checkbox" checked="" />
  1438. <span class="form-check-label">Option 3</span>
  1439. </label>
  1440. </div>
  1441. </div>
  1442. </div>
  1443. </div>
  1444. <div class="example-code">
  1445. <figure class="highlight">
  1446. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1447. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Checkboxes<span class="nt">&lt;/div&gt;</span>
  1448. <span class="nt">&lt;div&gt;</span>
  1449. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1450. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="nt">&gt;</span>
  1451. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Checkbox input<span class="nt">&lt;/span&gt;</span>
  1452. <span class="nt">&lt;/label&gt;</span>
  1453. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1454. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">disabled</span><span class="nt">&gt;</span>
  1455. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Disabled checkbox input<span class="nt">&lt;/span&gt;</span>
  1456. <span class="nt">&lt;/label&gt;</span>
  1457. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check"</span><span class="nt">&gt;</span>
  1458. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1459. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Checked checkbox input<span class="nt">&lt;/span&gt;</span>
  1460. <span class="nt">&lt;/label&gt;</span>
  1461. <span class="nt">&lt;/div&gt;</span>
  1462. <span class="nt">&lt;/div&gt;</span>
  1463. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1464. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Inline Checkboxes<span class="nt">&lt;/div&gt;</span>
  1465. <span class="nt">&lt;div&gt;</span>
  1466. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1467. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="nt">&gt;</span>
  1468. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 1<span class="nt">&lt;/span&gt;</span>
  1469. <span class="nt">&lt;/label&gt;</span>
  1470. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1471. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">disabled</span><span class="nt">&gt;</span>
  1472. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 2<span class="nt">&lt;/span&gt;</span>
  1473. <span class="nt">&lt;/label&gt;</span>
  1474. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-check form-check-inline"</span><span class="nt">&gt;</span>
  1475. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1476. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"form-check-label"</span><span class="nt">&gt;</span>Option 3<span class="nt">&lt;/span&gt;</span>
  1477. <span class="nt">&lt;/label&gt;</span>
  1478. <span class="nt">&lt;/div&gt;</span>
  1479. <span class="nt">&lt;/div&gt;</span></code></pre>
  1480. </figure>
  1481. </div>
  1482. <h2 id="range-input">Range input</h2>
  1483. <p>Add a range slider to make it possible for users to set a value or range, such as a price range or a time frame.</p>
  1484. <div class="example no_toc_section">
  1485. <div class="example-content">
  1486. <div class="mb-3">
  1487. <label class="form-label">Range input</label>
  1488. <input type="range" class="form-range mb-2" value="40" min="0" max="100" step="10" />
  1489. <div class="form-range mb-2" id="range-simple"></div>
  1490. <div class="form-range mb-2" id="range-connect"></div>
  1491. <div class="form-range mb-2 text-green" id="range-color"></div>
  1492. </div>
  1493. </div>
  1494. </div>
  1495. <div class="example-code">
  1496. <figure class="highlight">
  1497. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1498. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Range input<span class="nt">&lt;/label&gt;</span>
  1499. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"range"</span> <span class="na">class=</span><span class="s">"form-range mb-2"</span> <span class="na">value=</span><span class="s">"40"</span> <span class="na">min=</span><span class="s">"0"</span> <span class="na">max=</span><span class="s">"100"</span> <span class="na">step=</span><span class="s">"10"</span><span class="nt">&gt;</span>
  1500. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-range mb-2"</span> <span class="na">id=</span><span class="s">"range-simple"</span><span class="nt">&gt;&lt;/div&gt;</span>
  1501. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-range mb-2"</span> <span class="na">id=</span><span class="s">"range-connect"</span><span class="nt">&gt;&lt;/div&gt;</span>
  1502. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"form-range mb-2 text-green"</span> <span class="na">id=</span><span class="s">"range-color"</span><span class="nt">&gt;&lt;/div&gt;</span>
  1503. <span class="nt">&lt;/div&gt;</span>
  1504. <span class="nt">&lt;script&gt;</span>
  1505. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1506. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1507. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1508. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1509. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1510. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1511. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1512. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1513. <span class="p">}</span>
  1514. <span class="p">}));</span>
  1515. <span class="p">});</span>
  1516. <span class="nt">&lt;/script&gt;</span></code></pre>
  1517. </figure>
  1518. </div>
  1519. <h2 id="input-group">Input group</h2>
  1520. <p>Create a group of input controls and place add-ons on either side of an input.</p>
  1521. <div class="example no_toc_section">
  1522. <div class="example-content">
  1523. <div class="mb-3">
  1524. <label class="form-label">Input group</label>
  1525. <div class="input-group mb-2">
  1526. <span class="input-group-text">
  1527. @
  1528. </span>
  1529. <input type="text" class="form-control" placeholder="username" autocomplete="off" />
  1530. </div>
  1531. <div class="input-group mb-2">
  1532. <input type="text" class="form-control" placeholder="subdomain" autocomplete="off" />
  1533. <span class="input-group-text">
  1534. .tabler.io
  1535. </span>
  1536. </div>
  1537. <div class="input-group">
  1538. <span class="input-group-text">
  1539. https://
  1540. </span>
  1541. <input type="text" class="form-control" placeholder="subdomain" autocomplete="off" />
  1542. <span class="input-group-text">
  1543. .tabler.io
  1544. </span>
  1545. </div>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. <div class="example-code">
  1550. <figure class="highlight">
  1551. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1552. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input group<span class="nt">&lt;/label&gt;</span>
  1553. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group mb-2"</span><span class="nt">&gt;</span>
  1554. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1555. @
  1556. <span class="nt">&lt;/span&gt;</span>
  1557. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"username"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1558. <span class="nt">&lt;/div&gt;</span>
  1559. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group mb-2"</span><span class="nt">&gt;</span>
  1560. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"subdomain"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1561. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1562. .tabler.io
  1563. <span class="nt">&lt;/span&gt;</span>
  1564. <span class="nt">&lt;/div&gt;</span>
  1565. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group"</span><span class="nt">&gt;</span>
  1566. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1567. https://
  1568. <span class="nt">&lt;/span&gt;</span>
  1569. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">placeholder=</span><span class="s">"subdomain"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1570. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1571. .tabler.io
  1572. <span class="nt">&lt;/span&gt;</span>
  1573. <span class="nt">&lt;/div&gt;</span>
  1574. <span class="nt">&lt;/div&gt;</span>
  1575. <span class="nt">&lt;script&gt;</span>
  1576. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1577. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1578. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1579. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1580. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1581. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1582. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1583. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1584. <span class="p">}</span>
  1585. <span class="p">}));</span>
  1586. <span class="p">});</span>
  1587. <span class="nt">&lt;/script&gt;</span></code></pre>
  1588. </figure>
  1589. </div>
  1590. <h2 id="input-with-checkboxes-or-radios">Input with checkboxes or radios</h2>
  1591. <p>Add checkboxes or radio buttons on either side of your input control.</p>
  1592. <div class="example no_toc_section">
  1593. <div class="example-content">
  1594. <div class="mb-3">
  1595. <label class="form-label">Input with checkbox or radios</label>
  1596. <div class="input-group mb-2">
  1597. <span class="input-group-text">
  1598. <input class="form-check-input m-0" type="checkbox" checked="" />
  1599. </span>
  1600. <input type="text" class="form-control" autocomplete="off" />
  1601. </div>
  1602. <div class="input-group">
  1603. <input type="text" class="form-control" autocomplete="off" />
  1604. <span class="input-group-text">
  1605. <input class="form-check-input m-0" type="radio" checked="" />
  1606. </span>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. </div>
  1611. <div class="example-code">
  1612. <figure class="highlight">
  1613. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1614. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input with checkbox or radios<span class="nt">&lt;/label&gt;</span>
  1615. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group mb-2"</span><span class="nt">&gt;</span>
  1616. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1617. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input m-0"</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1618. <span class="nt">&lt;/span&gt;</span>
  1619. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1620. <span class="nt">&lt;/div&gt;</span>
  1621. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group"</span><span class="nt">&gt;</span>
  1622. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1623. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1624. <span class="nt">&lt;input</span> <span class="na">class=</span><span class="s">"form-check-input m-0"</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span><span class="nt">&gt;</span>
  1625. <span class="nt">&lt;/span&gt;</span>
  1626. <span class="nt">&lt;/div&gt;</span>
  1627. <span class="nt">&lt;/div&gt;</span>
  1628. <span class="nt">&lt;script&gt;</span>
  1629. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1630. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1631. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1632. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1633. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1634. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1635. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1636. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1637. <span class="p">}</span>
  1638. <span class="p">}));</span>
  1639. <span class="p">});</span>
  1640. <span class="nt">&lt;/script&gt;</span></code></pre>
  1641. </figure>
  1642. </div>
  1643. <h2 id="input-with-prepended-or-appended-text">Input with prepended or appended text</h2>
  1644. <p>Add text to your input control, either before or after the text which is to be entered by a user.</p>
  1645. <div class="example no_toc_section">
  1646. <div class="example-content">
  1647. <div class="mb-3">
  1648. <label class="form-label">Input with prepended text</label>
  1649. <div class="input-group input-group-flat mb-2">
  1650. <span class="input-group-text">
  1651. https://tabler.io/users/
  1652. </span>
  1653. <input type="text" class="form-control ps-0" value="yourfancyusername" autocomplete="off" />
  1654. </div>
  1655. <div class="input-group input-group-flat">
  1656. <input type="text" class="form-control text-end pe-0" value="yourfancydomain" autocomplete="off" />
  1657. <span class="input-group-text">
  1658. .tabler.io
  1659. </span>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. <div class="example-code">
  1665. <figure class="highlight">
  1666. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1667. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input with prepended text<span class="nt">&lt;/label&gt;</span>
  1668. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group input-group-flat mb-2"</span><span class="nt">&gt;</span>
  1669. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1670. https://tabler.io/users/
  1671. <span class="nt">&lt;/span&gt;</span>
  1672. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control ps-0"</span> <span class="na">value=</span><span class="s">"yourfancyusername"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1673. <span class="nt">&lt;/div&gt;</span>
  1674. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group input-group-flat"</span><span class="nt">&gt;</span>
  1675. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control text-end pe-0"</span> <span class="na">value=</span><span class="s">"yourfancydomain"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1676. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1677. .tabler.io
  1678. <span class="nt">&lt;/span&gt;</span>
  1679. <span class="nt">&lt;/div&gt;</span>
  1680. <span class="nt">&lt;/div&gt;</span>
  1681. <span class="nt">&lt;script&gt;</span>
  1682. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1683. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1684. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1685. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1686. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1687. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1688. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1689. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1690. <span class="p">}</span>
  1691. <span class="p">}));</span>
  1692. <span class="p">});</span>
  1693. <span class="nt">&lt;/script&gt;</span></code></pre>
  1694. </figure>
  1695. </div>
  1696. <h2 id="input-with-appended-link">Input with appended link</h2>
  1697. <p>Include a link in your input control to add a clickable element within the control.</p>
  1698. <div class="example no_toc_section">
  1699. <div class="example-content">
  1700. <div class="mb-3">
  1701. <label class="form-label">Input with appended link</label>
  1702. <div class="input-group input-group-flat">
  1703. <input type="password" class="form-control" value="ultrastrongpassword" autocomplete="off" />
  1704. <span class="input-group-text">
  1705. <a href="javascript:void(0)" class="input-group-link">Show password</a>
  1706. </span>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. <div class="example-code">
  1712. <figure class="highlight">
  1713. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1714. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input with appended link<span class="nt">&lt;/label&gt;</span>
  1715. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group input-group-flat"</span><span class="nt">&gt;</span>
  1716. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"password"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">value=</span><span class="s">"ultrastrongpassword"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1717. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1718. <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"input-group-link"</span><span class="nt">&gt;</span>Show password<span class="nt">&lt;/a&gt;</span>
  1719. <span class="nt">&lt;/span&gt;</span>
  1720. <span class="nt">&lt;/div&gt;</span>
  1721. <span class="nt">&lt;/div&gt;</span>
  1722. <span class="nt">&lt;script&gt;</span>
  1723. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1724. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1725. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1726. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1727. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1728. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1729. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1730. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1731. <span class="p">}</span>
  1732. <span class="p">}));</span>
  1733. <span class="p">});</span>
  1734. <span class="nt">&lt;/script&gt;</span></code></pre>
  1735. </figure>
  1736. </div>
  1737. <h2 id="input-with-appended-kbd">Input with appended <code class="language-plaintext highlighter-rouge">&lt;kbd&gt;</code></h2>
  1738. <p>Include a <code class="language-plaintext highlighter-rouge">&lt;kbd&gt;</code> in your input control to add shortcut to the control.</p>
  1739. <div class="example no_toc_section">
  1740. <div class="example-content">
  1741. <div class="mb-3">
  1742. <label class="form-label">Input with appended link</label>
  1743. <div class="input-group input-group-flat">
  1744. <input type="password" class="form-control" value="ultrastrongpassword" autocomplete="off" />
  1745. <span class="input-group-text">
  1746. <kbd>ctrl + K</kbd>
  1747. </span>
  1748. </div>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. <div class="example-code">
  1753. <figure class="highlight">
  1754. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1755. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input with appended link<span class="nt">&lt;/label&gt;</span>
  1756. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group input-group-flat"</span><span class="nt">&gt;</span>
  1757. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"password"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">value=</span><span class="s">"ultrastrongpassword"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1758. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1759. <span class="nt">&lt;kbd&gt;</span>ctrl + K<span class="nt">&lt;/kbd&gt;</span>
  1760. <span class="nt">&lt;/span&gt;</span>
  1761. <span class="nt">&lt;/div&gt;</span>
  1762. <span class="nt">&lt;/div&gt;</span>
  1763. <span class="nt">&lt;script&gt;</span>
  1764. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1765. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1766. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1767. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1768. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1769. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1770. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1771. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1772. <span class="p">}</span>
  1773. <span class="p">}));</span>
  1774. <span class="p">});</span>
  1775. <span class="nt">&lt;/script&gt;</span></code></pre>
  1776. </figure>
  1777. </div>
  1778. <h2 id="input-with-appended-icon-links">Input with appended icon links</h2>
  1779. <p>Add an icon link which you want to display at the end of your input control to visually represent actions which a user can take.</p>
  1780. <div class="example no_toc_section">
  1781. <div class="example-content">
  1782. <div class="mb-3">
  1783. <label class="form-label">Input with appended icon links</label>
  1784. <div class="input-group input-group-flat">
  1785. <input type="text" class="form-control" autocomplete="off" />
  1786. <span class="input-group-text">
  1787. <a href="javascript:void(0)" class="link-secondary" title="Clear search" data-bs-toggle="tooltip"><!-- Download SVG icon from http://tabler-icons.io/i/x -->
  1788. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>
  1789. </a>
  1790. <a href="javascript:void(0)" class="link-secondary ms-2" title="Search settings" data-bs-toggle="tooltip"><!-- Download SVG icon from http://tabler-icons.io/i/adjustments -->
  1791. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M6 4l0 4" /><path d="M6 12l0 8" /><path d="M12 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M12 4l0 10" /><path d="M12 18l0 2" /><path d="M18 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M18 4l0 1" /><path d="M18 9l0 11" /></svg>
  1792. </a>
  1793. <a href="javascript:void(0)" class="link-secondary ms-2 disabled" title="Add notification" data-bs-toggle="tooltip"><!-- Download SVG icon from http://tabler-icons.io/i/bell -->
  1794. <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6" /><path d="M9 17v1a3 3 0 0 0 6 0v-1" /></svg>
  1795. </a>
  1796. </span>
  1797. </div>
  1798. </div>
  1799. </div>
  1800. </div>
  1801. <div class="example-code">
  1802. <figure class="highlight">
  1803. <pre><code class="language-html" data-lang="html"><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"mb-3"</span><span class="nt">&gt;</span>
  1804. <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"form-label"</span><span class="nt">&gt;</span>Input with appended icon links<span class="nt">&lt;/label&gt;</span>
  1805. <span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"input-group input-group-flat"</span><span class="nt">&gt;</span>
  1806. <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">class=</span><span class="s">"form-control"</span> <span class="na">autocomplete=</span><span class="s">"off"</span><span class="nt">&gt;</span>
  1807. <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"input-group-text"</span><span class="nt">&gt;</span>
  1808. <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"link-secondary"</span> <span class="na">title=</span><span class="s">"Clear search"</span> <span class="na">data-bs-toggle=</span><span class="s">"tooltip"</span><span class="nt">&gt;</span><span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/x --&gt;</span>
  1809. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M18 6l-12 12"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M6 6l12 12"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1810. <span class="nt">&lt;/a&gt;</span>
  1811. <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"link-secondary ms-2"</span> <span class="na">title=</span><span class="s">"Search settings"</span> <span class="na">data-bs-toggle=</span><span class="s">"tooltip"</span><span class="nt">&gt;</span><span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/adjustments --&gt;</span>
  1812. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M6 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M6 4l0 4"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M6 12l0 8"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M12 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M12 4l0 10"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M12 18l0 2"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M18 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M18 4l0 1"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M18 9l0 11"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1813. <span class="nt">&lt;/a&gt;</span>
  1814. <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"link-secondary ms-2 disabled"</span> <span class="na">title=</span><span class="s">"Add notification"</span> <span class="na">data-bs-toggle=</span><span class="s">"tooltip"</span><span class="nt">&gt;</span><span class="c">&lt;!-- Download SVG icon from http://tabler-icons.io/i/bell --&gt;</span>
  1815. <span class="nt">&lt;svg</span> <span class="na">xmlns=</span><span class="s">"http://www.w3.org/2000/svg"</span> <span class="na">class=</span><span class="s">"icon"</span> <span class="na">width=</span><span class="s">"24"</span> <span class="na">height=</span><span class="s">"24"</span> <span class="na">viewBox=</span><span class="s">"0 0 24 24"</span> <span class="na">stroke-width=</span><span class="s">"2"</span> <span class="na">stroke=</span><span class="s">"currentColor"</span> <span class="na">fill=</span><span class="s">"none"</span> <span class="na">stroke-linecap=</span><span class="s">"round"</span> <span class="na">stroke-linejoin=</span><span class="s">"round"</span><span class="nt">&gt;&lt;path</span> <span class="na">stroke=</span><span class="s">"none"</span> <span class="na">d=</span><span class="s">"M0 0h24v24H0z"</span> <span class="na">fill=</span><span class="s">"none"</span><span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"</span> <span class="nt">/&gt;&lt;path</span> <span class="na">d=</span><span class="s">"M9 17v1a3 3 0 0 0 6 0v-1"</span> <span class="nt">/&gt;&lt;/svg&gt;</span>
  1816. <span class="nt">&lt;/a&gt;</span>
  1817. <span class="nt">&lt;/span&gt;</span>
  1818. <span class="nt">&lt;/div&gt;</span>
  1819. <span class="nt">&lt;/div&gt;</span>
  1820. <span class="nt">&lt;script&gt;</span>
  1821. <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="dl">"</span><span class="s2">DOMContentLoaded</span><span class="dl">"</span><span class="p">,</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
  1822. <span class="nb">window</span><span class="p">.</span><span class="nx">noUiSlider</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">noUiSlider</span><span class="p">.</span><span class="nx">create</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="dl">'</span><span class="s1">range-color</span><span class="dl">'</span><span class="p">),</span> <span class="p">{</span>
  1823. <span class="na">start</span><span class="p">:</span> <span class="mi">40</span><span class="p">,</span>
  1824. <span class="na">connect</span><span class="p">:</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="kc">false</span><span class="p">],</span>
  1825. <span class="na">step</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span>
  1826. <span class="na">range</span><span class="p">:</span> <span class="p">{</span>
  1827. <span class="na">min</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
  1828. <span class="na">max</span><span class="p">:</span> <span class="mi">100</span>
  1829. <span class="p">}</span>
  1830. <span class="p">}));</span>
  1831. <span class="p">});</span>
  1832. <span class="nt">&lt;/script&gt;</span></code></pre>
  1833. </figure>
  1834. </div>
  1835. </div>
  1836. </div>
  1837. </div>
  1838. </div>
  1839. </div>
  1840. </div>
  1841. </div>
  1842. <footer class="footer footer-transparent d-print-none">
  1843. <div class="container-xl">
  1844. <div class="row text-center align-items-center flex-row-reverse">
  1845. <div class="col-lg-auto ms-lg-auto">
  1846. <ul class="list-inline list-inline-dots mb-0">
  1847. <li class="list-inline-item"><a href="../docs/" class="link-secondary">Documentation</a></li>
  1848. <li class="list-inline-item"><a href="../license.html" class="link-secondary">License</a></li>
  1849. <li class="list-inline-item"><a href="https://github.com/tabler/tabler" target="_blank" class="link-secondary" rel="noopener">Source code</a></li>
  1850. <li class="list-inline-item">
  1851. <a href="https://github.com/sponsors/codecalm" target="_blank" class="link-secondary" rel="noopener">
  1852. <!-- Download SVG icon from http://tabler-icons.io/i/heart -->
  1853. <svg xmlns="http://www.w3.org/2000/svg" class="icon text-pink icon-filled icon-inline" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" /></svg>
  1854. Sponsor
  1855. </a>
  1856. </li>
  1857. </ul>
  1858. </div>
  1859. <div class="col-12 col-lg-auto mt-3 mt-lg-0">
  1860. <ul class="list-inline list-inline-dots mb-0">
  1861. <li class="list-inline-item">
  1862. Copyright &copy; 2023
  1863. <a href=".." class="link-secondary">Tabler</a>.
  1864. All rights reserved.
  1865. </li>
  1866. <li class="list-inline-item">
  1867. <a href="../changelog.html" class="link-secondary" rel="noopener">
  1868. v1.0.0-beta17
  1869. </a>
  1870. </li>
  1871. </ul>
  1872. </div>
  1873. </div>
  1874. </div>
  1875. </footer>
  1876. </div>
  1877. </div>
  1878. <!-- Libs JS -->
  1879. <script src="../dist/libs/nouislider/dist/nouislider.min.js?1674944402" defer></script>
  1880. <!-- Tabler Core -->
  1881. <script src="../dist/js/tabler.min.js?1674944402" defer></script>
  1882. <script src="../dist/js/demo.min.js?1674944402" defer></script>
  1883. <script>
  1884. // @formatter:off
  1885. document.addEventListener("DOMContentLoaded", function () {
  1886. window.noUiSlider && (noUiSlider.create(document.getElementById('range-simple'), {
  1887. start: 20,
  1888. connect: [true, false],
  1889. step: 10,
  1890. range: {
  1891. min: 0,
  1892. max: 100
  1893. }
  1894. }));
  1895. });
  1896. // @formatter:on
  1897. </script>
  1898. <script>
  1899. // @formatter:off
  1900. document.addEventListener("DOMContentLoaded", function () {
  1901. window.noUiSlider && (noUiSlider.create(document.getElementById('range-connect'), {
  1902. start: [60, 90],
  1903. connect: [false, true, false],
  1904. step: 10,
  1905. range: {
  1906. min: 0,
  1907. max: 100
  1908. }
  1909. }));
  1910. });
  1911. // @formatter:on
  1912. </script>
  1913. <script>
  1914. // @formatter:off
  1915. document.addEventListener("DOMContentLoaded", function () {
  1916. window.noUiSlider && (noUiSlider.create(document.getElementById('range-color'), {
  1917. start: 40,
  1918. connect: [true, false],
  1919. step: 10,
  1920. range: {
  1921. min: 0,
  1922. max: 100
  1923. }
  1924. }));
  1925. });
  1926. // @formatter:on
  1927. </script>
  1928. <script>
  1929. document.addEventListener("DOMContentLoaded", function() {
  1930. let sliderTriggerList = [].slice.call(document.querySelectorAll("[data-slider]"));
  1931. sliderTriggerList.map(function (sliderTriggerEl) {
  1932. let options = {};
  1933. if (sliderTriggerEl.getAttribute("data-slider")) {
  1934. options = JSON.parse(sliderTriggerEl.getAttribute("data-slider"));
  1935. }
  1936. let slider = noUiSlider.create(sliderTriggerEl, options);
  1937. if (options['js-name']) {
  1938. window[options['js-name']] = slider;
  1939. }
  1940. });
  1941. });
  1942. </script>
  1943. </body>
  1944. </html>