方诺官网改正版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1337 lines
54 KiB

  1. <template>
  2. <div>
  3. <div class="intro-y flex items-center mt-8">
  4. <h2 class="text-lg font-medium mr-auto">Regular Form</h2>
  5. </div>
  6. <div class="grid grid-cols-12 gap-6 mt-5">
  7. <div class="intro-y col-span-12 lg:col-span-6">
  8. <!-- BEGIN: Input -->
  9. <div class="intro-y box">
  10. <div
  11. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  12. >
  13. <h2 class="font-medium text-base mr-auto">Input</h2>
  14. <div
  15. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  16. >
  17. <div class="mr-3">Show example code</div>
  18. <input
  19. data-target="#input"
  20. class="show-code input input--switch border"
  21. type="checkbox"
  22. />
  23. </div>
  24. </div>
  25. <div id="input" class="p-5">
  26. <div class="preview">
  27. <div>
  28. <label>Input Text</label>
  29. <input
  30. type="text"
  31. class="input w-full border mt-2"
  32. placeholder="Input text"
  33. />
  34. </div>
  35. <div class="mt-3">
  36. <label>Rounded</label>
  37. <input
  38. type="text"
  39. class="input w-full rounded-full border mt-2"
  40. placeholder="Rounded"
  41. />
  42. </div>
  43. <div class="mt-3">
  44. <label>With Help</label>
  45. <input
  46. type="text"
  47. class="input w-full border mt-2"
  48. placeholder="With help"
  49. />
  50. <div class="text-xs text-gray-600 mt-2">
  51. Lorem Ipsum is simply dummy text of the printing and
  52. typesetting industry.
  53. </div>
  54. </div>
  55. <div class="mt-3">
  56. <label>Password</label>
  57. <input
  58. type="password"
  59. class="input w-full border mt-2"
  60. placeholder="Password"
  61. />
  62. </div>
  63. <div class="mt-3">
  64. <label>Disabled</label>
  65. <input
  66. type="text"
  67. class="input w-full border mt-2 bg-gray-100 cursor-not-allowed"
  68. placeholder="Disabled"
  69. disabled
  70. />
  71. </div>
  72. </div>
  73. <div class="source-code hidden">
  74. <button
  75. data-target="#copy-input"
  76. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  77. >
  78. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  79. </button>
  80. <div class="overflow-y-auto h-64 mt-3">
  81. <Highlight id="copy-input" class="source-preview">
  82. <code
  83. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  84. >
  85. <textarea>
  86. <div>
  87. <label>Input Text</label>
  88. <input
  89. type="text"
  90. class="input w-full border mt-2"
  91. placeholder="Input text"
  92. />
  93. </div>
  94. <div class="mt-3">
  95. <label>Rounded</label>
  96. <input
  97. type="text"
  98. class="input w-full rounded-full border mt-2"
  99. placeholder="Rounded"
  100. />
  101. </div>
  102. <div class="mt-3">
  103. <label>With Help</label>
  104. <input
  105. type="text"
  106. class="input w-full border mt-2"
  107. placeholder="With help"
  108. />
  109. <div class="text-xs text-gray-600 mt-2">
  110. Lorem Ipsum is simply dummy text of the printing and
  111. typesetting industry.
  112. </div>
  113. </div>
  114. <div class="mt-3">
  115. <label>Password</label>
  116. <input
  117. type="password"
  118. class="input w-full border mt-2"
  119. placeholder="Password"
  120. />
  121. </div>
  122. <div class="mt-3">
  123. <label>Disabled</label>
  124. <input
  125. type="text"
  126. class="input w-full border mt-2 bg-gray-100 cursor-not-allowed"
  127. placeholder="Disabled"
  128. disabled
  129. />
  130. </div>
  131. </textarea>
  132. </code>
  133. </Highlight>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <!-- END: Input -->
  139. <!-- BEGIN: Input Sizing -->
  140. <div class="intro-y box mt-5">
  141. <div
  142. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  143. >
  144. <h2 class="font-medium text-base mr-auto">Input Sizing</h2>
  145. <div
  146. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  147. >
  148. <div class="mr-3">Show example code</div>
  149. <input
  150. data-target="#input-sizing"
  151. class="show-code input input--switch border"
  152. type="checkbox"
  153. />
  154. </div>
  155. </div>
  156. <div id="input-sizing" class="p-5">
  157. <div class="preview">
  158. <input
  159. type="text"
  160. class="input input--sm w-full border"
  161. placeholder="Input small"
  162. />
  163. <input
  164. type="text"
  165. class="input w-full border mt-2"
  166. placeholder="Input normal"
  167. />
  168. <input
  169. type="text"
  170. class="input input--lg w-full border mt-2"
  171. placeholder="Input large"
  172. />
  173. </div>
  174. <div class="source-code hidden">
  175. <button
  176. data-target="#copy-input-sizing"
  177. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  178. >
  179. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  180. </button>
  181. <div class="overflow-y-auto h-64 mt-3">
  182. <Highlight id="copy-input-sizing" class="source-preview">
  183. <code
  184. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  185. >
  186. <textarea>
  187. <input
  188. type="text"
  189. class="input input--sm w-full border"
  190. placeholder="Input small"
  191. />
  192. <input
  193. type="text"
  194. class="input w-full border mt-2"
  195. placeholder="Input normal"
  196. />
  197. <input
  198. type="text"
  199. class="input input--lg w-full border mt-2"
  200. placeholder="Input large"
  201. />
  202. </textarea>
  203. </code>
  204. </Highlight>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. <!-- END: Input Sizing -->
  210. <!-- BEGIN: Input Groups -->
  211. <div class="intro-y box mt-5">
  212. <div
  213. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  214. >
  215. <h2 class="font-medium text-base mr-auto">Input Groups</h2>
  216. <div
  217. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  218. >
  219. <div class="mr-3">Show example code</div>
  220. <input
  221. data-target="#input-groups"
  222. class="show-code input input--switch border"
  223. type="checkbox"
  224. />
  225. </div>
  226. </div>
  227. <div id="input-groups" class="p-5">
  228. <div class="preview">
  229. <div class="relative">
  230. <div
  231. class="absolute rounded-l w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  232. >
  233. @
  234. </div>
  235. <input
  236. type="text"
  237. class="input pl-12 w-full border col-span-4"
  238. placeholder="Email"
  239. />
  240. </div>
  241. <div class="relative mt-2">
  242. <input
  243. type="text"
  244. class="input pr-12 w-full border col-span-4"
  245. placeholder="Price"
  246. />
  247. <div
  248. class="absolute top-0 right-0 rounded-r w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  249. >
  250. .00
  251. </div>
  252. </div>
  253. <div class="relative mt-2">
  254. <div
  255. class="absolute rounded-l w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  256. >
  257. @
  258. </div>
  259. <input
  260. type="text"
  261. class="input px-12 w-full border col-span-4"
  262. placeholder="Price"
  263. />
  264. <div
  265. class="absolute top-0 right-0 rounded-r w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  266. >
  267. .00
  268. </div>
  269. </div>
  270. </div>
  271. <div class="source-code hidden">
  272. <button
  273. data-target="#copy-input-groups"
  274. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  275. >
  276. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  277. </button>
  278. <div class="overflow-y-auto h-64 mt-3">
  279. <Highlight id="copy-input-groups" class="source-preview">
  280. <code
  281. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  282. >
  283. <textarea>
  284. <div class="relative">
  285. <div
  286. class="absolute rounded-l w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  287. >
  288. @
  289. </div>
  290. <input
  291. type="text"
  292. class="input pl-12 w-full border col-span-4"
  293. placeholder="Email"
  294. />
  295. </div>
  296. <div class="relative mt-2">
  297. <input
  298. type="text"
  299. class="input pr-12 w-full border col-span-4"
  300. placeholder="Price"
  301. />
  302. <div
  303. class="absolute top-0 right-0 rounded-r w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  304. >
  305. .00
  306. </div>
  307. </div>
  308. <div class="relative mt-2">
  309. <div
  310. class="absolute rounded-l w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  311. >
  312. @
  313. </div>
  314. <input
  315. type="text"
  316. class="input px-12 w-full border col-span-4"
  317. placeholder="Price"
  318. />
  319. <div
  320. class="absolute top-0 right-0 rounded-r w-10 h-full flex items-center justify-center bg-gray-100 dark:bg-dark-1 dark:border-dark-4 border text-gray-600"
  321. >
  322. .00
  323. </div>
  324. </div>
  325. </textarea>
  326. </code>
  327. </Highlight>
  328. </div>
  329. </div>
  330. </div>
  331. </div>
  332. <!-- END: Input Groups -->
  333. <!-- BEGIN: Input State -->
  334. <div class="intro-y box mt-5">
  335. <div
  336. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  337. >
  338. <h2 class="font-medium text-base mr-auto">Input State</h2>
  339. <div
  340. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  341. >
  342. <div class="mr-3">Show example code</div>
  343. <input
  344. data-target="#input-state"
  345. class="show-code input input--switch border"
  346. type="checkbox"
  347. />
  348. </div>
  349. </div>
  350. <div id="input-state" class="p-5">
  351. <div class="preview">
  352. <div>
  353. <label>Input Success</label>
  354. <input
  355. type="text"
  356. class="input w-full border border-theme-9 mt-2"
  357. placeholder="Input text"
  358. />
  359. <div class="w-full grid grid-cols-12 gap-4 h-1 mt-3">
  360. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  361. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  362. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  363. <div
  364. class="col-span-3 h-full rounded bg-gray-200 dark:bg-dark-1"
  365. ></div>
  366. </div>
  367. <div class="text-theme-9 mt-2">Strong password</div>
  368. </div>
  369. <div class="mt-3">
  370. <label>Input Warning</label>
  371. <input
  372. type="text"
  373. class="input w-full border border-theme-12 mt-2"
  374. placeholder="Input text"
  375. />
  376. <div class="text-theme-12 mt-2">
  377. Attempting to reconnect to server...
  378. </div>
  379. </div>
  380. <div class="mt-3">
  381. <label>Input Error</label>
  382. <input
  383. type="text"
  384. class="input w-full border border-theme-6 mt-2"
  385. placeholder="Input text"
  386. />
  387. <div class="text-theme-6 mt-2">This field is required</div>
  388. </div>
  389. </div>
  390. <div class="source-code hidden">
  391. <button
  392. data-target="#copy-input-state"
  393. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  394. >
  395. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  396. </button>
  397. <div class="overflow-y-auto h-64 mt-3">
  398. <Highlight id="copy-input-state" class="source-preview">
  399. <code
  400. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  401. >
  402. <textarea>
  403. <div>
  404. <label>Input Success</label>
  405. <input
  406. type="text"
  407. class="input w-full border border-theme-9 mt-2"
  408. placeholder="Input text"
  409. />
  410. <div class="w-full grid grid-cols-12 gap-4 h-1 mt-3">
  411. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  412. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  413. <div class="col-span-3 h-full rounded bg-theme-9"></div>
  414. <div
  415. class="col-span-3 h-full rounded bg-gray-200 dark:bg-dark-1"
  416. ></div>
  417. </div>
  418. <div class="text-theme-9 mt-2">Strong password</div>
  419. </div>
  420. <div class="mt-3">
  421. <label>Input Warning</label>
  422. <input
  423. type="text"
  424. class="input w-full border border-theme-12 mt-2"
  425. placeholder="Input text"
  426. />
  427. <div class="text-theme-12 mt-2">
  428. Attempting to reconnect to server...
  429. </div>
  430. </div>
  431. <div class="mt-3">
  432. <label>Input Error</label>
  433. <input
  434. type="text"
  435. class="input w-full border border-theme-6 mt-2"
  436. placeholder="Input text"
  437. />
  438. <div class="text-theme-6 mt-2">
  439. This field is required
  440. </div>
  441. </div>
  442. </textarea>
  443. </code>
  444. </Highlight>
  445. </div>
  446. </div>
  447. </div>
  448. </div>
  449. <!-- END: Input State -->
  450. <!-- BEGIN: Select Options -->
  451. <div class="intro-y box mt-5">
  452. <div
  453. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  454. >
  455. <h2 class="font-medium text-base mr-auto">Select Options</h2>
  456. <div
  457. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  458. >
  459. <div class="mr-3">Show example code</div>
  460. <input
  461. data-target="#select-options"
  462. class="show-code input input--switch border"
  463. type="checkbox"
  464. />
  465. </div>
  466. </div>
  467. <div id="select-options" class="p-5">
  468. <div class="preview">
  469. <div class="flex flex-col sm:flex-row items-center">
  470. <div class="sm:mt-2">
  471. <select class="input input--sm border mr-2">
  472. <option>Chris Evans</option>
  473. <option>Liam Neeson</option>
  474. <option>Daniel Craig</option>
  475. </select>
  476. </div>
  477. <div class="mt-2">
  478. <select class="input border mr-2">
  479. <option>Chris Evans</option>
  480. <option>Liam Neeson</option>
  481. <option>Daniel Craig</option>
  482. </select>
  483. </div>
  484. <div class="mt-2">
  485. <select class="input input--lg border mr-2">
  486. <option>Chris Evans</option>
  487. <option>Liam Neeson</option>
  488. <option>Daniel Craig</option>
  489. </select>
  490. </div>
  491. </div>
  492. </div>
  493. <div class="source-code hidden">
  494. <button
  495. data-target="#copy-select-options"
  496. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  497. >
  498. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  499. </button>
  500. <div class="overflow-y-auto h-64 mt-3">
  501. <Highlight id="copy-select-options" class="source-preview">
  502. <code
  503. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  504. >
  505. <textarea>
  506. <div class="flex flex-col sm:flex-row items-center">
  507. <div class="sm:mt-2">
  508. <select class="input input--sm border mr-2">
  509. <option>Chris Evans</option>
  510. <option>Liam Neeson</option>
  511. <option>Daniel Craig</option>
  512. </select>
  513. </div>
  514. <div class="mt-2">
  515. <select class="input border mr-2">
  516. <option>Chris Evans</option>
  517. <option>Liam Neeson</option>
  518. <option>Daniel Craig</option>
  519. </select>
  520. </div>
  521. <div class="mt-2">
  522. <select class="input input--lg border mr-2">
  523. <option>Chris Evans</option>
  524. <option>Liam Neeson</option>
  525. <option>Daniel Craig</option>
  526. </select>
  527. </div>
  528. </div>
  529. </textarea>
  530. </code>
  531. </Highlight>
  532. </div>
  533. </div>
  534. </div>
  535. </div>
  536. <!-- END: Select Options -->
  537. </div>
  538. <div class="intro-y col-span-12 lg:col-span-6">
  539. <!-- BEGIN: Vertical Form -->
  540. <div class="intro-y box">
  541. <div
  542. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  543. >
  544. <h2 class="font-medium text-base mr-auto">Vertical Form</h2>
  545. <div
  546. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  547. >
  548. <div class="mr-3">Show example code</div>
  549. <input
  550. data-target="#vertical-form"
  551. class="show-code input input--switch border"
  552. type="checkbox"
  553. />
  554. </div>
  555. </div>
  556. <div id="vertical-form" class="p-5">
  557. <div class="preview">
  558. <div>
  559. <label>Email</label>
  560. <input
  561. type="email"
  562. class="input w-full border mt-2"
  563. placeholder="example@gmail.com"
  564. />
  565. </div>
  566. <div class="mt-3">
  567. <label>Password</label>
  568. <input
  569. type="password"
  570. class="input w-full border mt-2"
  571. placeholder="secret"
  572. />
  573. </div>
  574. <div
  575. class="flex items-center text-gray-700 dark:text-gray-500 mt-5"
  576. >
  577. <input
  578. id="vertical-remember-me"
  579. type="checkbox"
  580. class="input border mr-2"
  581. />
  582. <label
  583. class="cursor-pointer select-none"
  584. for="vertical-remember-me"
  585. >Remember me</label
  586. >
  587. </div>
  588. <button type="button" class="button bg-theme-1 text-white mt-5">
  589. Login
  590. </button>
  591. </div>
  592. <div class="source-code hidden">
  593. <button
  594. data-target="#copy-vertical-form"
  595. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  596. >
  597. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  598. </button>
  599. <div class="overflow-y-auto h-64 mt-3">
  600. <Highlight id="copy-vertical-form" class="source-preview">
  601. <code
  602. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  603. >
  604. <textarea>
  605. <div>
  606. <label>Email</label>
  607. <input
  608. type="email"
  609. class="input w-full border mt-2"
  610. placeholder="example@gmail.com"
  611. />
  612. </div>
  613. <div class="mt-3">
  614. <label>Password</label>
  615. <input
  616. type="password"
  617. class="input w-full border mt-2"
  618. placeholder="secret"
  619. />
  620. </div>
  621. <div
  622. class="flex items-center text-gray-700 dark:text-gray-500 mt-5"
  623. >
  624. <input
  625. id="vertical-remember-me"
  626. type="checkbox"
  627. class="input border mr-2"
  628. />
  629. <label
  630. class="cursor-pointer select-none"
  631. for="vertical-remember-me"
  632. >Remember me</label
  633. >
  634. </div>
  635. <button
  636. type="button"
  637. class="button bg-theme-1 text-white mt-5"
  638. >
  639. Login
  640. </button>
  641. </textarea>
  642. </code>
  643. </Highlight>
  644. </div>
  645. </div>
  646. </div>
  647. </div>
  648. <!-- END: Vertical Form -->
  649. <!-- BEGIN: Horizontal Form -->
  650. <div class="intro-y box mt-5">
  651. <div
  652. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  653. >
  654. <h2 class="font-medium text-base mr-auto">Horizontal Form</h2>
  655. <div
  656. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  657. >
  658. <div class="mr-3">Show example code</div>
  659. <input
  660. data-target="#horizontal-form"
  661. class="show-code input input--switch border"
  662. type="checkbox"
  663. />
  664. </div>
  665. </div>
  666. <div id="horizontal-form" class="p-5">
  667. <div class="preview">
  668. <div class="flex flex-col sm:flex-row items-center">
  669. <label class="w-full sm:w-20 sm:text-right sm:mr-5"
  670. >Email</label
  671. >
  672. <input
  673. type="email"
  674. class="input w-full border mt-2 flex-1"
  675. placeholder="example@gmail.com"
  676. />
  677. </div>
  678. <div class="flex flex-col sm:flex-row items-center mt-3">
  679. <label class="w-full sm:w-20 sm:text-right sm:mr-5"
  680. >Password</label
  681. >
  682. <input
  683. type="password"
  684. class="input w-full border mt-2 flex-1"
  685. placeholder="secret"
  686. />
  687. </div>
  688. <div
  689. class="flex items-center text-gray-700 dark:text-gray-500 mt-5 sm:ml-20 sm:pl-5"
  690. >
  691. <input
  692. id="horizontal-remember-me"
  693. type="checkbox"
  694. class="input border mr-2"
  695. />
  696. <label
  697. class="cursor-pointer select-none"
  698. for="horizontal-remember-me"
  699. >Remember me</label
  700. >
  701. </div>
  702. <div class="sm:ml-20 sm:pl-5 mt-5">
  703. <button type="button" class="button bg-theme-1 text-white">
  704. Login
  705. </button>
  706. </div>
  707. </div>
  708. <div class="source-code hidden">
  709. <button
  710. data-target="#copy-horizontal-form"
  711. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  712. >
  713. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  714. </button>
  715. <div class="overflow-y-auto h-64 mt-3">
  716. <Highlight id="copy-horizontal-form" class="source-preview">
  717. <code
  718. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  719. >
  720. <textarea>
  721. <div class="flex flex-col sm:flex-row items-center">
  722. <label class="w-full sm:w-20 sm:text-right sm:mr-5"
  723. >Email</label
  724. >
  725. <input
  726. type="email"
  727. class="input w-full border mt-2 flex-1"
  728. placeholder="example@gmail.com"
  729. />
  730. </div>
  731. <div class="flex flex-col sm:flex-row items-center mt-3">
  732. <label class="w-full sm:w-20 sm:text-right sm:mr-5"
  733. >Password</label
  734. >
  735. <input
  736. type="password"
  737. class="input w-full border mt-2 flex-1"
  738. placeholder="secret"
  739. />
  740. </div>
  741. <div
  742. class="flex items-center text-gray-700 dark:text-gray-500 mt-5 sm:ml-20 sm:pl-5"
  743. >
  744. <input
  745. id="horizontal-remember-me"
  746. type="checkbox"
  747. class="input border mr-2"
  748. />
  749. <label
  750. class="cursor-pointer select-none"
  751. for="horizontal-remember-me"
  752. >Remember me</label
  753. >
  754. </div>
  755. <div class="sm:ml-20 sm:pl-5 mt-5">
  756. <button
  757. type="button"
  758. class="button bg-theme-1 text-white"
  759. >
  760. Login
  761. </button>
  762. </div>
  763. </textarea>
  764. </code>
  765. </Highlight>
  766. </div>
  767. </div>
  768. </div>
  769. </div>
  770. <!-- END: Horizontal Form -->
  771. <!-- BEGIN: Inline Form -->
  772. <div class="intro-y box mt-5">
  773. <div
  774. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  775. >
  776. <h2 class="font-medium text-base mr-auto">Inline Form</h2>
  777. <div
  778. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  779. >
  780. <div class="mr-3">Show example code</div>
  781. <input
  782. data-target="#inline-form"
  783. class="show-code input input--switch border"
  784. type="checkbox"
  785. />
  786. </div>
  787. </div>
  788. <div id="inline-form" class="p-5">
  789. <div class="preview">
  790. <div class="grid grid-cols-12 gap-2">
  791. <input
  792. type="text"
  793. class="input w-full border col-span-4"
  794. placeholder="Input inline 1"
  795. />
  796. <input
  797. type="text"
  798. class="input w-full border col-span-4"
  799. placeholder="Input inline 2"
  800. />
  801. <input
  802. type="text"
  803. class="input w-full border col-span-4"
  804. placeholder="Input inline 3"
  805. />
  806. </div>
  807. </div>
  808. <div class="source-code hidden">
  809. <button
  810. data-target="#copy-inline-form"
  811. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  812. >
  813. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  814. </button>
  815. <div class="overflow-y-auto h-64 mt-3">
  816. <Highlight id="copy-inline-form" class="source-preview">
  817. <code
  818. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  819. >
  820. <textarea>
  821. <div class="grid grid-cols-12 gap-2">
  822. <input
  823. type="text"
  824. class="input w-full border col-span-4"
  825. placeholder="Input inline 1"
  826. />
  827. <input
  828. type="text"
  829. class="input w-full border col-span-4"
  830. placeholder="Input inline 2"
  831. />
  832. <input
  833. type="text"
  834. class="input w-full border col-span-4"
  835. placeholder="Input inline 3"
  836. />
  837. </div>
  838. </textarea>
  839. </code>
  840. </Highlight>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. <!-- END: Inline Form -->
  846. <!-- BEGIN: Checkbox & Switch -->
  847. <div class="intro-y box mt-5">
  848. <div
  849. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  850. >
  851. <h2 class="font-medium text-base mr-auto">Checkbox & Switch</h2>
  852. <div
  853. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  854. >
  855. <div class="mr-3">Show example code</div>
  856. <input
  857. data-target="#checkbox-switch"
  858. class="show-code input input--switch border"
  859. type="checkbox"
  860. />
  861. </div>
  862. </div>
  863. <div id="checkbox-switch" class="p-5">
  864. <div class="preview">
  865. <div>
  866. <label>Vertical Checkbox</label>
  867. <div
  868. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  869. >
  870. <input
  871. id="vertical-checkbox-chris-evans"
  872. type="checkbox"
  873. class="input border mr-2"
  874. />
  875. <label
  876. class="cursor-pointer select-none"
  877. for="vertical-checkbox-chris-evans"
  878. >Chris evans</label
  879. >
  880. </div>
  881. <div
  882. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  883. >
  884. <input
  885. id="vertical-checkbox-liam-neeson"
  886. type="checkbox"
  887. class="input border mr-2"
  888. />
  889. <label
  890. class="cursor-pointer select-none"
  891. for="vertical-checkbox-liam-neeson"
  892. >Liam Neeson</label
  893. >
  894. </div>
  895. <div
  896. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  897. >
  898. <input
  899. id="vertical-checkbox-daniel-craig"
  900. type="checkbox"
  901. class="input border mr-2"
  902. />
  903. <label
  904. class="cursor-pointer select-none"
  905. for="vertical-checkbox-daniel-craig"
  906. >Daniel Craig</label
  907. >
  908. </div>
  909. </div>
  910. <div class="mt-3">
  911. <label>Horizontal Checkbox</label>
  912. <div class="flex flex-col sm:flex-row mt-2">
  913. <div
  914. class="flex items-center text-gray-700 dark:text-gray-500 mr-2"
  915. >
  916. <input
  917. id="horizontal-checkbox-chris-evans"
  918. type="checkbox"
  919. class="input border mr-2"
  920. />
  921. <label
  922. class="cursor-pointer select-none"
  923. for="horizontal-checkbox-chris-evans"
  924. >Chris evans</label
  925. >
  926. </div>
  927. <div
  928. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  929. >
  930. <input
  931. id="horizontal-checkbox-liam-neeson"
  932. type="checkbox"
  933. class="input border mr-2"
  934. />
  935. <label
  936. class="cursor-pointer select-none"
  937. for="horizontal-checkbox-liam-neeson"
  938. >Liam Neeson</label
  939. >
  940. </div>
  941. <div
  942. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  943. >
  944. <input
  945. id="horizontal-checkbox-daniel-craig"
  946. type="checkbox"
  947. class="input border mr-2"
  948. />
  949. <label
  950. class="cursor-pointer select-none"
  951. for="horizontal-checkbox-daniel-craig"
  952. >Daniel Craig</label
  953. >
  954. </div>
  955. </div>
  956. </div>
  957. <div class="mt-3">
  958. <label>Switch</label>
  959. <div class="mt-2">
  960. <input type="checkbox" class="input input--switch border" />
  961. </div>
  962. </div>
  963. </div>
  964. <div class="source-code hidden">
  965. <button
  966. data-target="#copy-checkbox-switch"
  967. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  968. >
  969. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  970. </button>
  971. <div class="overflow-y-auto h-64 mt-3">
  972. <Highlight id="copy-checkbox-switch" class="source-preview">
  973. <code
  974. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  975. >
  976. <textarea>
  977. <div>
  978. <label>Vertical Checkbox</label>
  979. <div
  980. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  981. >
  982. <input
  983. id="vertical-checkbox-chris-evans"
  984. type="checkbox"
  985. class="input border mr-2"
  986. />
  987. <label
  988. class="cursor-pointer select-none"
  989. for="vertical-checkbox-chris-evans"
  990. >Chris evans</label
  991. >
  992. </div>
  993. <div
  994. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  995. >
  996. <input
  997. id="vertical-checkbox-liam-neeson"
  998. type="checkbox"
  999. class="input border mr-2"
  1000. />
  1001. <label
  1002. class="cursor-pointer select-none"
  1003. for="vertical-checkbox-liam-neeson"
  1004. >Liam Neeson</label
  1005. >
  1006. </div>
  1007. <div
  1008. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1009. >
  1010. <input
  1011. id="vertical-checkbox-daniel-craig"
  1012. type="checkbox"
  1013. class="input border mr-2"
  1014. />
  1015. <label
  1016. class="cursor-pointer select-none"
  1017. for="vertical-checkbox-daniel-craig"
  1018. >Daniel Craig</label
  1019. >
  1020. </div>
  1021. </div>
  1022. <div class="mt-3">
  1023. <label>Horizontal Checkbox</label>
  1024. <div class="flex flex-col sm:flex-row mt-2">
  1025. <div class="flex items-center text-gray-700 mr-2">
  1026. <input
  1027. id="horizontal-checkbox-chris-evans"
  1028. type="checkbox"
  1029. class="input border mr-2"
  1030. />
  1031. <label
  1032. class="cursor-pointer select-none"
  1033. for="horizontal-checkbox-chris-evans"
  1034. >Chris evans</label
  1035. >
  1036. </div>
  1037. <div
  1038. class="flex items-center text-gray-700 mr-2 mt-2 sm:mt-0"
  1039. >
  1040. <input
  1041. id="horizontal-checkbox-liam-neeson"
  1042. type="checkbox"
  1043. class="input border mr-2"
  1044. />
  1045. <label
  1046. class="cursor-pointer select-none"
  1047. for="horizontal-checkbox-liam-neeson"
  1048. >Liam Neeson</label
  1049. >
  1050. </div>
  1051. <div
  1052. class="flex items-center text-gray-700 mr-2 mt-2 sm:mt-0"
  1053. >
  1054. <input
  1055. id="horizontal-checkbox-daniel-craig"
  1056. type="checkbox"
  1057. class="input border mr-2"
  1058. />
  1059. <label
  1060. class="cursor-pointer select-none"
  1061. for="horizontal-checkbox-daniel-craig"
  1062. >Daniel Craig</label
  1063. >
  1064. </div>
  1065. </div>
  1066. </div>
  1067. <div class="mt-3">
  1068. <label>Switch</label>
  1069. <div class="mt-2">
  1070. <input
  1071. type="checkbox"
  1072. class="input input--switch border"
  1073. />
  1074. </div>
  1075. </div>
  1076. </textarea>
  1077. </code>
  1078. </Highlight>
  1079. </div>
  1080. </div>
  1081. </div>
  1082. </div>
  1083. <!-- END: Checkbox & Switch -->
  1084. <!-- BEGIN: Radio Button -->
  1085. <div class="intro-y box mt-5">
  1086. <div
  1087. class="flex flex-col sm:flex-row items-center p-5 border-b border-gray-200 dark:border-dark-5"
  1088. >
  1089. <h2 class="font-medium text-base mr-auto">Radio</h2>
  1090. <div
  1091. class="w-full sm:w-auto flex items-center sm:ml-auto mt-3 sm:mt-0"
  1092. >
  1093. <div class="mr-3">Show example code</div>
  1094. <input
  1095. data-target="#radio"
  1096. class="show-code input input--switch border"
  1097. type="checkbox"
  1098. />
  1099. </div>
  1100. </div>
  1101. <div id="radio" class="p-5">
  1102. <div class="preview">
  1103. <div>
  1104. <label>Vertical Radio Button</label>
  1105. <div
  1106. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1107. >
  1108. <input
  1109. id="vertical-radio-chris-evans"
  1110. type="radio"
  1111. class="input border mr-2"
  1112. name="vertical_radio_button"
  1113. value="vertical-radio-chris-evans"
  1114. />
  1115. <label
  1116. class="cursor-pointer select-none"
  1117. for="vertical-radio-chris-evans"
  1118. >Chris evans</label
  1119. >
  1120. </div>
  1121. <div
  1122. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1123. >
  1124. <input
  1125. id="vertical-radio-liam-neeson"
  1126. type="radio"
  1127. class="input border mr-2"
  1128. name="vertical_radio_button"
  1129. value="vertical-radio-liam-neeson"
  1130. />
  1131. <label
  1132. class="cursor-pointer select-none"
  1133. for="vertical-radio-liam-neeson"
  1134. >Liam Neeson</label
  1135. >
  1136. </div>
  1137. <div
  1138. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1139. >
  1140. <input
  1141. id="vertical-radio-daniel-craig"
  1142. type="radio"
  1143. class="input border mr-2"
  1144. name="vertical_radio_button"
  1145. value="vertical-radio-daniel-craig"
  1146. />
  1147. <label
  1148. class="cursor-pointer select-none"
  1149. for="vertical-radio-daniel-craig"
  1150. >Daniel Craig</label
  1151. >
  1152. </div>
  1153. </div>
  1154. <div class="mt-3">
  1155. <label>Horizontal Radio Button</label>
  1156. <div class="flex flex-col sm:flex-row mt-2">
  1157. <div
  1158. class="flex items-center text-gray-700 dark:text-gray-500 mr-2"
  1159. >
  1160. <input
  1161. id="horizontal-radio-chris-evans"
  1162. type="radio"
  1163. class="input border mr-2"
  1164. name="horizontal_radio_button"
  1165. value="horizontal-radio-chris-evans"
  1166. />
  1167. <label
  1168. class="cursor-pointer select-none"
  1169. for="horizontal-radio-chris-evans"
  1170. >Chris Evans</label
  1171. >
  1172. </div>
  1173. <div
  1174. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  1175. >
  1176. <input
  1177. id="horizontal-radio-liam-neeson"
  1178. type="radio"
  1179. class="input border mr-2"
  1180. name="horizontal_radio_button"
  1181. value="horizontal-radio-liam-neeson"
  1182. />
  1183. <label
  1184. class="cursor-pointer select-none"
  1185. for="horizontal-radio-liam-neeson"
  1186. >Liam Neeson</label
  1187. >
  1188. </div>
  1189. <div
  1190. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  1191. >
  1192. <input
  1193. id="horizontal-radio-daniel-craig"
  1194. type="radio"
  1195. class="input border mr-2"
  1196. name="horizontal_radio_button"
  1197. value="horizontal-radio-daniel-craig"
  1198. />
  1199. <label
  1200. class="cursor-pointer select-none"
  1201. for="horizontal-radio-daniel-craig"
  1202. >Daniel Craig</label
  1203. >
  1204. </div>
  1205. </div>
  1206. </div>
  1207. </div>
  1208. <div class="source-code hidden">
  1209. <button
  1210. data-target="#copy-radio"
  1211. class="copy-code button button--sm border flex items-center text-gray-700 dark:border-dark-5 dark:text-gray-300"
  1212. >
  1213. <FileIcon class="w-4 h-4 mr-2" /> Copy example code
  1214. </button>
  1215. <div class="overflow-y-auto h-64 mt-3">
  1216. <Highlight id="copy-radio" class="source-preview">
  1217. <code
  1218. class="text-xs p-0 rounded-md html pl-5 pt-8 pb-4 -mb-10 -mt-10"
  1219. >
  1220. <textarea>
  1221. <div>
  1222. <label>Vertical Radio Button</label>
  1223. <div
  1224. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1225. >
  1226. <input
  1227. id="vertical-radio-chris-evans"
  1228. type="radio"
  1229. class="input border mr-2"
  1230. name="vertical_radio_button"
  1231. value="vertical-radio-chris-evans"
  1232. />
  1233. <label
  1234. class="cursor-pointer select-none"
  1235. for="vertical-radio-chris-evans"
  1236. >Chris evans</label
  1237. >
  1238. </div>
  1239. <div
  1240. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1241. >
  1242. <input
  1243. id="vertical-radio-liam-neeson"
  1244. type="radio"
  1245. class="input border mr-2"
  1246. name="vertical_radio_button"
  1247. value="vertical-radio-liam-neeson"
  1248. />
  1249. <label
  1250. class="cursor-pointer select-none"
  1251. for="vertical-radio-liam-neeson"
  1252. >Liam Neeson</label
  1253. >
  1254. </div>
  1255. <div
  1256. class="flex items-center text-gray-700 dark:text-gray-500 mt-2"
  1257. >
  1258. <input
  1259. id="vertical-radio-daniel-craig"
  1260. type="radio"
  1261. class="input border mr-2"
  1262. name="vertical_radio_button"
  1263. value="vertical-radio-daniel-craig"
  1264. />
  1265. <label
  1266. class="cursor-pointer select-none"
  1267. for="vertical-radio-daniel-craig"
  1268. >Daniel Craig</label
  1269. >
  1270. </div>
  1271. </div>
  1272. <div class="mt-3">
  1273. <label>Horizontal Radio Button</label>
  1274. <div class="flex flex-col sm:flex-row mt-2">
  1275. <div
  1276. class="flex items-center text-gray-700 dark:text-gray-500 mr-2"
  1277. >
  1278. <input
  1279. id="horizontal-radio-chris-evans"
  1280. type="radio"
  1281. class="input border mr-2"
  1282. name="horizontal_radio_button"
  1283. value="horizontal-radio-chris-evans"
  1284. />
  1285. <label
  1286. class="cursor-pointer select-none"
  1287. for="horizontal-radio-chris-evans"
  1288. >Chris Evans</label
  1289. >
  1290. </div>
  1291. <div
  1292. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  1293. >
  1294. <input
  1295. id="horizontal-radio-liam-neeson"
  1296. type="radio"
  1297. class="input border mr-2"
  1298. name="horizontal_radio_button"
  1299. value="horizontal-radio-liam-neeson"
  1300. />
  1301. <label
  1302. class="cursor-pointer select-none"
  1303. for="horizontal-radio-liam-neeson"
  1304. >Liam Neeson</label
  1305. >
  1306. </div>
  1307. <div
  1308. class="flex items-center text-gray-700 dark:text-gray-500 mr-2 mt-2 sm:mt-0"
  1309. >
  1310. <input
  1311. id="horizontal-radio-daniel-craig"
  1312. type="radio"
  1313. class="input border mr-2"
  1314. name="horizontal_radio_button"
  1315. value="horizontal-radio-daniel-craig"
  1316. />
  1317. <label
  1318. class="cursor-pointer select-none"
  1319. for="horizontal-radio-daniel-craig"
  1320. >Daniel Craig</label
  1321. >
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </textarea>
  1326. </code>
  1327. </Highlight>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. <!-- END: Radio Button -->
  1333. </div>
  1334. </div>
  1335. </div>
  1336. </template>