@tabler/core 1.0.0-beta22 → 1.0.0-beta24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/LICENSE +1 -1
  2. package/dist/css/demo.css +2 -2
  3. package/dist/css/demo.min.css +2 -2
  4. package/dist/css/demo.rtl.css +2 -2
  5. package/dist/css/demo.rtl.min.css +2 -2
  6. package/dist/css/tabler-flags.css +2 -2
  7. package/dist/css/tabler-flags.min.css +2 -2
  8. package/dist/css/tabler-flags.rtl.css +2 -2
  9. package/dist/css/tabler-flags.rtl.min.css +2 -2
  10. package/dist/css/tabler-marketing.css +4751 -0
  11. package/dist/css/tabler-marketing.min.css +9 -0
  12. package/dist/css/tabler-marketing.rtl.css +4751 -0
  13. package/dist/css/tabler-marketing.rtl.min.css +9 -0
  14. package/dist/css/tabler-payments.css +2 -2
  15. package/dist/css/tabler-payments.min.css +2 -2
  16. package/dist/css/tabler-payments.rtl.css +2 -2
  17. package/dist/css/tabler-payments.rtl.min.css +2 -2
  18. package/dist/css/tabler-socials.css +221 -0
  19. package/dist/css/tabler-socials.min.css +9 -0
  20. package/dist/css/tabler-socials.rtl.css +221 -0
  21. package/dist/css/tabler-socials.rtl.min.css +9 -0
  22. package/dist/css/tabler-vendors.css +25 -19
  23. package/dist/css/tabler-vendors.min.css +3 -3
  24. package/dist/css/tabler-vendors.rtl.css +25 -19
  25. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  26. package/dist/css/tabler.css +1300 -1501
  27. package/dist/css/tabler.min.css +4 -4
  28. package/dist/css/tabler.rtl.css +1300 -1501
  29. package/dist/css/tabler.rtl.min.css +4 -4
  30. package/dist/img/social/apple-gray.svg +3 -0
  31. package/dist/img/social/apple.svg +3 -0
  32. package/dist/img/social/discord-gray.svg +3 -0
  33. package/dist/img/social/discord.svg +3 -0
  34. package/dist/img/social/dribbble-gray.svg +3 -0
  35. package/dist/img/social/dribbble.svg +4 -0
  36. package/dist/img/social/facebook-gray.svg +3 -0
  37. package/dist/img/social/facebook.svg +4 -0
  38. package/dist/img/social/figma-gray.svg +3 -0
  39. package/dist/img/social/figma.svg +7 -0
  40. package/dist/img/social/github-gray.svg +10 -0
  41. package/dist/img/social/github.svg +10 -0
  42. package/dist/img/social/google-gray.svg +3 -0
  43. package/dist/img/social/google.svg +6 -0
  44. package/dist/img/social/instagram-gray.svg +5 -0
  45. package/dist/img/social/instagram.svg +18 -0
  46. package/dist/img/social/linkedin-gray.svg +3 -0
  47. package/dist/img/social/linkedin.svg +3 -0
  48. package/dist/img/social/medium-gray.svg +5 -0
  49. package/dist/img/social/medium.svg +5 -0
  50. package/dist/img/social/meta-gray.svg +5 -0
  51. package/dist/img/social/meta.svg +17 -0
  52. package/dist/img/social/metamask-gray.svg +12 -0
  53. package/dist/img/social/metamask.svg +14 -0
  54. package/dist/img/social/pinterest-gray.svg +3 -0
  55. package/dist/img/social/pinterest.svg +4 -0
  56. package/dist/img/social/reddit-gray.svg +6 -0
  57. package/dist/img/social/reddit.svg +11 -0
  58. package/dist/img/social/signal-gray.svg +10 -0
  59. package/dist/img/social/signal.svg +10 -0
  60. package/dist/img/social/skype-gray.svg +3 -0
  61. package/dist/img/social/skype.svg +3 -0
  62. package/dist/img/social/snapchat-gray.svg +10 -0
  63. package/dist/img/social/snapchat.svg +11 -0
  64. package/dist/img/social/spotify-gray.svg +3 -0
  65. package/dist/img/social/spotify.svg +3 -0
  66. package/dist/img/social/telegram-gray.svg +3 -0
  67. package/dist/img/social/telegram.svg +10 -0
  68. package/dist/img/social/tiktok-gray.svg +3 -0
  69. package/dist/img/social/tiktok.svg +5 -0
  70. package/dist/img/social/tumblr-gray.svg +3 -0
  71. package/dist/img/social/tumblr.svg +3 -0
  72. package/dist/img/social/twitch-gray.svg +5 -0
  73. package/dist/img/social/twitch.svg +6 -0
  74. package/dist/img/social/vk-gray.svg +3 -0
  75. package/dist/img/social/vk.svg +4 -0
  76. package/dist/img/social/x-gray.svg +3 -0
  77. package/dist/img/social/x.svg +3 -0
  78. package/dist/img/social/youtube-gray.svg +3 -0
  79. package/dist/img/social/youtube.svg +11 -0
  80. package/dist/js/demo-theme.js +2 -2
  81. package/dist/js/demo-theme.min.js +2 -2
  82. package/dist/js/demo.js +2 -2
  83. package/dist/js/demo.min.js +2 -2
  84. package/dist/js/tabler.esm.js +19 -4
  85. package/dist/js/tabler.esm.min.js +3 -3
  86. package/dist/js/tabler.js +19 -4
  87. package/dist/js/tabler.min.js +4 -4
  88. package/docs/icons/index.mdx +3 -93
  89. package/docs/icons/libraries/index.mdx +5 -0
  90. package/docs/icons/{preact.mdx → libraries/preact.mdx} +4 -2
  91. package/docs/icons/{react.mdx → libraries/react.mdx} +5 -3
  92. package/docs/icons/{solidjs.mdx → libraries/solidjs.mdx} +5 -2
  93. package/docs/icons/{svelte.mdx → libraries/svelte.mdx} +5 -2
  94. package/docs/icons/{vue.mdx → libraries/vue.mdx} +13 -8
  95. package/docs/icons/{webfont.mdx → libraries/webfont.mdx} +4 -1
  96. package/docs/icons/plugins/figma.mdx +15 -0
  97. package/docs/icons/plugins/index.mdx +4 -0
  98. package/docs/icons/{eps.mdx → static-files/eps.mdx} +3 -1
  99. package/docs/icons/static-files/index.mdx +5 -0
  100. package/docs/icons/{pdf.mdx → static-files/pdf.mdx} +3 -1
  101. package/docs/icons/static-files/png.mdx +31 -0
  102. package/docs/icons/{svg.mdx → static-files/svg.mdx} +18 -18
  103. package/docs/illustrations/index.mdx +8 -0
  104. package/docs/illustrations/introduction/contents.mdx +77 -0
  105. package/docs/illustrations/introduction/customization.mdx +431 -0
  106. package/docs/illustrations/introduction/index.mdx +5 -0
  107. package/docs/illustrations/introduction/license.mdx +22 -0
  108. package/docs/img/browsers/brave.svg +1 -0
  109. package/docs/img/browsers/chrome.svg +1 -0
  110. package/docs/img/browsers/edge.svg +1 -0
  111. package/docs/img/browsers/electron.svg +1 -0
  112. package/docs/img/browsers/firefox.svg +1 -0
  113. package/docs/img/browsers/internet-explorer.svg +1 -0
  114. package/docs/img/browsers/opera.svg +1 -0
  115. package/docs/img/browsers/safari.svg +1 -0
  116. package/docs/img/browsers/vivaldi.svg +1 -0
  117. package/docs/img/cover-illustrations-dark.png +0 -0
  118. package/docs/img/cover-illustrations.png +0 -0
  119. package/docs/img/cover-tabler-dark.png +0 -0
  120. package/docs/img/cover-tabler.png +0 -0
  121. package/docs/img/icons/figma-plugin.png +0 -0
  122. package/docs/img/icons/package-angular-dark.png +0 -0
  123. package/docs/img/icons/package-angular.png +0 -0
  124. package/docs/img/icons/package-eps-dark.png +0 -0
  125. package/docs/img/icons/package-eps.png +0 -0
  126. package/docs/img/icons/package-js-dark.png +0 -0
  127. package/docs/img/icons/package-js.png +0 -0
  128. package/docs/img/icons/package-pdf-dark.png +0 -0
  129. package/docs/img/icons/package-pdf.png +0 -0
  130. package/docs/img/icons/package-png-dark.png +0 -0
  131. package/docs/img/icons/package-png.png +0 -0
  132. package/docs/img/icons/package-preact-dark.png +0 -0
  133. package/docs/img/icons/package-preact.png +0 -0
  134. package/docs/img/icons/package-react-dark.png +0 -0
  135. package/docs/img/icons/package-react-native-dark.png +0 -0
  136. package/docs/img/icons/package-react-native.png +0 -0
  137. package/docs/img/icons/package-react.png +0 -0
  138. package/docs/img/icons/package-solidjs-dark.png +0 -0
  139. package/docs/img/icons/package-solidjs.png +0 -0
  140. package/docs/img/icons/package-sprite-dark.png +0 -0
  141. package/docs/img/icons/package-sprite.png +0 -0
  142. package/docs/img/icons/package-svelte-dark.png +0 -0
  143. package/docs/img/icons/package-svelte.png +0 -0
  144. package/docs/img/icons/package-svg-dark.png +0 -0
  145. package/docs/img/icons/package-svg.png +0 -0
  146. package/docs/img/icons/package-vue-dark.png +0 -0
  147. package/docs/img/icons/package-vue.png +0 -0
  148. package/docs/img/icons/package-webfont-dark.png +0 -0
  149. package/docs/img/icons/package-webfont.png +0 -0
  150. package/docs/index.mdx +16 -0
  151. package/docs/ui/base/colors.mdx +63 -5
  152. package/docs/ui/base/index.mdx +6 -0
  153. package/docs/ui/base/typography.mdx +96 -101
  154. package/docs/ui/components/alerts.mdx +45 -120
  155. package/docs/ui/components/autosize.mdx +12 -3
  156. package/docs/ui/components/avatars.mdx +7 -4
  157. package/docs/ui/components/badges.mdx +66 -75
  158. package/docs/ui/components/breadcrumb.mdx +125 -59
  159. package/docs/ui/components/buttons.mdx +142 -87
  160. package/docs/ui/components/cards.mdx +48 -27
  161. package/docs/ui/components/carousel.mdx +8 -7
  162. package/docs/ui/components/charts.mdx +15 -24
  163. package/docs/ui/components/countup.mdx +74 -45
  164. package/docs/ui/components/datagrid.mdx +10 -2
  165. package/docs/ui/components/divider.mdx +6 -6
  166. package/docs/ui/components/dropdowns.mdx +24 -15
  167. package/docs/ui/components/dropzone.mdx +39 -14
  168. package/docs/ui/components/empty.mdx +7 -5
  169. package/docs/ui/components/icons.mdx +53 -14
  170. package/docs/ui/components/index.mdx +6 -0
  171. package/docs/ui/components/inline-player.mdx +31 -4
  172. package/docs/ui/components/modals.mdx +53 -18
  173. package/docs/ui/components/offcanvas.mdx +55 -0
  174. package/docs/ui/components/placeholder.mdx +25 -25
  175. package/docs/ui/components/popover.mdx +8 -9
  176. package/docs/ui/components/progress.mdx +120 -19
  177. package/docs/ui/components/range-slider.mdx +17 -3
  178. package/docs/ui/components/ribbons.mdx +13 -12
  179. package/docs/ui/components/spinners.mdx +31 -10
  180. package/docs/ui/components/statuses.mdx +50 -13
  181. package/docs/ui/components/steps.mdx +62 -19
  182. package/docs/ui/components/switch-icon.mdx +4 -3
  183. package/docs/ui/components/tables.mdx +37 -17
  184. package/docs/ui/components/tabs.mdx +17 -11
  185. package/docs/ui/components/timelines.mdx +48 -29
  186. package/docs/ui/components/tinymce.mdx +3 -3
  187. package/docs/ui/components/toasts.mdx +3 -2
  188. package/docs/ui/components/tooltips.mdx +4 -3
  189. package/docs/ui/components/tracking.mdx +39 -34
  190. package/docs/ui/components/vector-maps.mdx +170 -0
  191. package/docs/ui/forms/form-color-check.mdx +36 -11
  192. package/docs/ui/forms/form-elements.mdx +32 -17
  193. package/docs/ui/forms/form-fieldset.mdx +3 -2
  194. package/docs/ui/forms/form-helpers.mdx +71 -4
  195. package/docs/ui/forms/form-image-check.mdx +43 -29
  196. package/docs/ui/forms/form-input-mask.mdx +33 -5
  197. package/docs/ui/forms/form-selectboxes.mdx +101 -16
  198. package/docs/ui/forms/form-validation.mdx +54 -13
  199. package/docs/ui/forms/index.mdx +6 -0
  200. package/docs/ui/getting-started/browser-support.mdx +10 -2
  201. package/docs/ui/getting-started/customize.mdx +5 -4
  202. package/docs/ui/getting-started/download.mdx +3 -5
  203. package/docs/ui/getting-started/faq.mdx +3 -1
  204. package/docs/ui/getting-started/how-to-contribute.mdx +96 -0
  205. package/docs/ui/getting-started/index.mdx +4 -28
  206. package/docs/ui/getting-started/installation.mdx +67 -0
  207. package/docs/ui/getting-started/license.mdx +30 -0
  208. package/docs/ui/index.mdx +8 -0
  209. package/docs/ui/layout/index.mdx +6 -0
  210. package/docs/ui/layout/navbars.mdx +106 -0
  211. package/docs/ui/layout/navs-tabls.mdx +187 -0
  212. package/docs/ui/layout/page-headers.mdx +16 -9
  213. package/docs/ui/layout/page-layouts.mdx +10 -6
  214. package/docs/ui/plugins/flags.mdx +270 -6
  215. package/docs/ui/plugins/index.mdx +6 -0
  216. package/docs/ui/plugins/payments.mdx +108 -4
  217. package/docs/ui/plugins/social-icons.mdx +135 -0
  218. package/docs/ui/utilities/borders.mdx +69 -49
  219. package/docs/ui/utilities/cursors.mdx +22 -51
  220. package/docs/ui/utilities/index.mdx +5 -0
  221. package/docs/ui/utilities/interactions.mdx +10 -5
  222. package/docs/ui/utilities/margins.mdx +234 -0
  223. package/docs/ui/utilities/vertical-align.mdx +66 -0
  224. package/docs/ui/utilities/visually-hidden.mdx +12 -0
  225. package/package.json +9 -6
  226. package/src/js/src/countup.js +17 -0
  227. package/src/js/tabler.esm.js +1 -0
  228. package/src/js/tabler.js +1 -0
  229. package/src/scss/_utilities-marketing.scss +209 -0
  230. package/src/scss/_utilities.scss +5 -9
  231. package/src/scss/_variables-marketing.scss +0 -0
  232. package/src/scss/_variables.scss +57 -22
  233. package/src/scss/layout/_animations.scss +2 -1
  234. package/src/scss/layout/_navbar.scss +0 -1
  235. package/src/scss/marketing/_browser.scss +67 -0
  236. package/src/scss/marketing/_core.scss +8 -0
  237. package/src/scss/marketing/_filters.scss +0 -0
  238. package/src/scss/marketing/_hero.scss +69 -0
  239. package/src/scss/marketing/_pricing.scss +111 -0
  240. package/src/scss/marketing/_sections.scss +124 -0
  241. package/src/scss/marketing/_shape.scss +31 -0
  242. package/src/scss/mixins/_mixins.scss +2 -2
  243. package/src/scss/tabler-marketing.scss +13 -0
  244. package/src/scss/tabler-socials.scss +2 -0
  245. package/src/scss/tabler-vendors.scss +1 -0
  246. package/src/scss/ui/_buttons.scss +8 -7
  247. package/src/scss/ui/_forms.scss +4 -0
  248. package/src/scss/ui/_images.scss +4 -0
  249. package/src/scss/ui/_lists.scss +11 -15
  250. package/src/scss/ui/_social.scss +52 -0
  251. package/src/scss/ui/_tables.scss +0 -1
  252. package/src/scss/ui/_type.scss +4 -0
  253. package/src/scss/utils/_colors.scss +1 -1
  254. package/src/scss/vendor/_dropzone.scss +3 -3
  255. package/src/scss/vendor/_tom-select.scss +1 -0
  256. package/src/scss/vendor/_typed.scss +4 -0
  257. package/dist/css/tabler-social.css +0 -10
  258. package/dist/css/tabler-social.min.css +0 -8
  259. package/dist/css/tabler-social.rtl.css +0 -10
  260. package/dist/css/tabler-social.rtl.min.css +0 -8
  261. package/docs/icons/figma.mdx +0 -7
  262. package/docs/icons/png.mdx +0 -19
  263. package/docs/menu.json +0 -317
  264. package/docs/ui/components/progressbg.mdx +0 -16
  265. package/src/scss/tabler-social.scss +0 -1
@@ -1,12 +1,60 @@
1
1
  ---
2
- title: Form selectboxes
2
+ title: Form selectgroup
3
+ summary: Use selectgroup to make your form more intuitive by providing users with a set of options to choose from. You can add simple selectgroup with a label, use icons only or icons with labels. Alternatively, you can use pill selectgroup if they go well with your design.
4
+ description: Improve form UX with select groups.
3
5
  ---
4
6
 
5
- Add selectboxes to make your form more intuitive by providing users with a set of options to choose from. You can add simple selectboxes with a label, use icons only or icons with labels. Alternatively, you can use pill selectboxes if they go well with your design.
7
+ ## Simple selectgroup
6
8
 
7
- ```html example code columns={1} centered
8
- <div class="mb-3">
9
- <label class="form-label">Simple selectgroup</label>
9
+ To create a simple selectgroup, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label.
10
+
11
+ ```html
12
+ <label class="form-selectgroup-item">
13
+ <input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
14
+ <span class="form-selectgroup-label">...</span>
15
+ </label>
16
+ ```
17
+
18
+ Look at the example below to see how the simple selectgroup works:
19
+
20
+ ```html example columns={1} centered
21
+ <div>
22
+ <div class="form-selectgroup">
23
+ <label class="form-selectgroup-item">
24
+ <input type="radio" name="name" value="HTML" class="form-selectgroup-input" checked />
25
+ <span class="form-selectgroup-label">HTML</span>
26
+ </label>
27
+ <label class="form-selectgroup-item">
28
+ <input type="radio" name="name" value="CSS" class="form-selectgroup-input" />
29
+ <span class="form-selectgroup-label">CSS</span>
30
+ </label>
31
+ <label class="form-selectgroup-item">
32
+ <input type="radio" name="name" value="PHP" class="form-selectgroup-input" />
33
+ <span class="form-selectgroup-label">PHP</span>
34
+ </label>
35
+ <label class="form-selectgroup-item">
36
+ <input type="radio" name="name" value="JavaScript" class="form-selectgroup-input" />
37
+ <span class="form-selectgroup-label">JavaScript</span>
38
+ </label>
39
+ </div>
40
+ </div>
41
+ ```
42
+
43
+ ## Multiple choices
44
+
45
+ You can also create a selectgroup with multiple choices. To do this, change the `type` attribute of the input element to `checkbox`.
46
+
47
+ ```html
48
+ <label class="form-selectgroup-item">
49
+ <input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
50
+ <span class="form-selectgroup-label">...</span>
51
+ </label>
52
+ ```
53
+
54
+ Look at the example below to see how the multiple choices selectgroup works:
55
+
56
+ ```html example columns={1} centered
57
+ <div>
10
58
  <div class="form-selectgroup">
11
59
  <label class="form-selectgroup-item">
12
60
  <input type="checkbox" name="name" value="HTML" class="form-selectgroup-input" checked />
@@ -28,7 +76,22 @@ Add selectboxes to make your form more intuitive by providing users with a set o
28
76
  </div>
29
77
  ```
30
78
 
31
- ```html example code columns={1} centered
79
+ ## Icon input
80
+
81
+ To create an icon input, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label. You can use the `.icon` class to style the icon.
82
+
83
+ ```html
84
+ <label class="form-selectgroup-item">
85
+ <input type="checkbox" name="name" value="sun" class="form-selectgroup-input" checked />
86
+ <span class="form-selectgroup-label">
87
+ <svg class="icon" width="24" height="24">...</svg>
88
+ </span>
89
+ </label>
90
+ ```
91
+
92
+ We recommend you use Tabler Icons for the best experience. You can find over <IconsCount rounded /> free icons in the [Tabler Icons](https://tabler-icons.io/) library. Just copy the SVG code and paste it into your project.
93
+
94
+ ```html example columns={1} centered
32
95
  <div class="mb-3">
33
96
  <label class="form-label">Icon input</label>
34
97
  <div class="form-selectgroup">
@@ -78,46 +141,68 @@ Add selectboxes to make your form more intuitive by providing users with a set o
78
141
  </div>
79
142
  ```
80
143
 
81
- ```html example code columns={1} centered
144
+ You can also add text to the element. Look at the example below to see how it works:
145
+
146
+ ```html example columns={1} centered
82
147
  <div class="mb-3">
83
148
  <label class="form-label">Selectgroup with icons and text</label>
84
149
  <div class="form-selectgroup">
85
150
  <label class="form-selectgroup-item">
86
151
  <input type="radio" name="icons" value="home" class="form-selectgroup-input" checked />
87
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
152
+ <span class="form-selectgroup-label">
153
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
88
154
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
89
155
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
90
156
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
91
157
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
92
- </svg> Home</span>
158
+ </svg> Home
159
+ </span>
93
160
  </label>
94
161
  <label class="form-selectgroup-item">
95
162
  <input type="radio" name="icons" value="user" class="form-selectgroup-input" />
96
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
163
+ <span class="form-selectgroup-label">
164
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
97
165
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
98
166
  <circle cx="12" cy="7" r="4" />
99
167
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
100
- </svg> User</span>
168
+ </svg> User
169
+ </span>
101
170
  </label>
102
171
  <label class="form-selectgroup-item">
103
172
  <input type="radio" name="icons" value="circle" class="form-selectgroup-input" />
104
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
173
+ <span class="form-selectgroup-label">
174
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
105
175
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
106
176
  <circle cx="12" cy="12" r="9" />
107
- </svg> Circle</span>
177
+ </svg> Circle
178
+ </span>
108
179
  </label>
109
180
  <label class="form-selectgroup-item">
110
181
  <input type="radio" name="icons" value="square" class="form-selectgroup-input" />
111
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
182
+ <span class="form-selectgroup-label">
183
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
112
184
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
113
185
  <rect x="4" y="4" width="16" height="16" rx="2" />
114
- </svg> Square</span>
186
+ </svg> Square
187
+ </span>
115
188
  </label>
116
189
  </div>
117
190
  </div>
118
191
  ```
119
192
 
120
- ```html example code columns={1} centered
193
+ ## Pill selectgroup
194
+
195
+ If you want to use pill selectgroup, use the `.form-selectgroup-pills` class. All the other classes are the same as in the simple selectgroup.
196
+
197
+ ```html
198
+ <div class="form-selectgroup form-selectgroup-pills">
199
+ ...
200
+ </div>
201
+ ```
202
+
203
+ Look at the example below to see how the pill selectgroup works:
204
+
205
+ ```html example columns={1} centered
121
206
  <div class="mb-3">
122
207
  <label class="form-label">Different style</label>
123
208
  <div class="form-selectgroup form-selectgroup-pills">
@@ -1,14 +1,50 @@
1
1
  ---
2
2
  title: Validation states
3
- description: To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
3
+ summary: To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
4
+ description: Indicate valid or invalid inputs.
4
5
  ---
5
6
 
6
- ```html example code centered columns="1" height="20rem"
7
- <div class="mb-3">
8
- <label class="form-label">Validation States </label>
9
- <input type="text" class="form-control is-valid mb-2" placeholder="Valid State..." />
10
- <input type="text" class="form-control is-invalid" placeholder="Invalid State..." />
11
- <div class="invalid-feedback">Invalid feedback</div>
7
+ ## Validation states
8
+
9
+ To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
10
+
11
+ To apply the validation state to the form control, use the `.is-valid` and `.is-invalid` classes.
12
+
13
+ ```html example centered separated columns="1" background="bg-light" height="20rem"
14
+ <input type="text" class="form-control is-valid" placeholder="Valid State..." />
15
+ <input type="text" class="form-control is-invalid" placeholder="Invalid State..." />
16
+ ```
17
+
18
+ ## Validation feedback
19
+
20
+ To provide users with additional information about the validation state, you can use the `.valid-feedback` and `.invalid-feedback` classes.
21
+
22
+ ```html
23
+ <input type="text" class="form-control is-valid" placeholder="Valid State..." />
24
+ <div class="valid-feedback">Looks good!</div>
25
+ ```
26
+
27
+ This is how it works in the example below:
28
+
29
+ ```html example centered columns="1" background="bg-light" height="20rem"
30
+ <div>
31
+ <label class="form-label required">City</label>
32
+ <input type="text" class="form-control is-invalid" required>
33
+ <div class="invalid-feedback">
34
+ Please provide a valid city.
35
+ </div>
36
+ </div>
37
+ ```
38
+
39
+ You can also use the `.valid-feedback` to provide users with positive feedback.
40
+
41
+ ```html example centered columns="1" background="bg-light" height="20rem"
42
+ <div>
43
+ <label class="form-label required">City</label>
44
+ <input type="text" class="form-control is-valid" value="Warsaw">
45
+ <div class="valid-feedback">
46
+ Looks good!
47
+ </div>
12
48
  </div>
13
49
  ```
14
50
 
@@ -16,10 +52,15 @@ description: To inform users whether the entered value is correct or not, use ei
16
52
 
17
53
  If you prefer a more subtle manner of informing users of the input control validation state, you can use tick and cross symbols and resign from colored control frames and the validation feedback.
18
54
 
19
- ```html example code centered columns="1" height="20rem"
20
- <div class="mb-3">
21
- <label class="form-label">Validation States (lite)</label>
22
- <input type="text" class="form-control is-valid is-valid-lite mb-2" placeholder="Valid State..." />
23
- <input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
24
- </div>
55
+ To do this, use the `.is-valid-lite` and `.is-invalid-lite` classes.
56
+
57
+ ```html
58
+ <input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
59
+ ```
60
+
61
+ Look how it works in the example below:
62
+
63
+ ```html example centered separated vertical columns="1" background="bg-light" height="20rem"
64
+ <input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
65
+ <input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
25
66
  ```
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Forms
3
+ order: 5
4
+ description: Build and manage web forms.
5
+ summary: The forms section provides a collection of components and tools for creating user-friendly and accessible forms, enhancing user interaction and improving data collection.
6
+ ---
@@ -1,10 +1,14 @@
1
1
  ---
2
2
  title: Browser Support
3
+ description: Check browser compatibility for Tabler.
4
+ summary: Learn about the supported browsers and compatibility guidelines for using Tabler UI components to ensure a consistent experience across different devices and platforms.
3
5
  ---
4
6
 
5
- As of this latest release, Tabler has launched many new features that may not be compatible with all browsers, especially older ones.
7
+ Tabler is fully optimized for all modern browsers, including the latest versions of Chrome, Firefox, Edge, Safari, and Opera. These browsers ensure a seamless and responsive experience, allowing users to enjoy Tabler's advanced UI components without compatibility issues.
6
8
 
7
- For instance, Tabler no longer uses **vendor prefixes** in styles that are known to have some compatibility issues except for a few parts. Tabler also supports new features such as **CSS grid**, **object fit**, and **sticky positioning** which is not yet supported on all browsers. In short, Tabler supports all the latest supported browsers with **only** partial support for Internet Explorer.
9
+ In this latest release, Tabler introduces modern features like CSS Grid, object fit, and sticky positioning, which enhance design flexibility but may not be fully supported on older browsers. While Tabler has dropped most vendor prefixes to streamline its styles, partial support remains for Internet Explorer, with some features potentially limited.
10
+
11
+ For the best experience, we recommend using one of the latest supported browsers to take full advantage of Tabler’s capabilities and design precision.
8
12
 
9
13
  ## Supported Browsers
10
14
 
@@ -18,3 +22,7 @@ Browser|Version
18
22
  <img src="/docs/browsers/electron.svg" width="48" height="48" alt="Electron Logo"/>|last 3 versions
19
23
  <img src="/docs/browsers/brave.svg" width="48" height="48" alt="Brave Logo"/>|last 3 versions
20
24
  <img src="/docs/browsers/vivaldi.svg" width="48" height="48" alt="Vivaldi Logo"/>|last 3 versions
25
+
26
+ ## Internet Explorer
27
+
28
+ Internet Explorer is not supported.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Customize Tabler
3
- description: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
3
+ summary: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
4
+ description: Adjust fonts, colors, and styles.
4
5
  ---
5
6
 
6
7
  ## Custom Google Font
@@ -17,8 +18,8 @@ Now you just need to tell Tabler to use your favorite font:
17
18
 
18
19
  ```html
19
20
  <style>
20
- :root {
21
- --tblr-font-sans-serif: 'Inter';
22
- }
21
+ :root {
22
+ --tblr-font-sans-serif: 'Inter';
23
+ }
23
24
  </style>
24
25
  ```
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Download
3
- description: Download Tabler to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, yarn and more.
3
+ summary: Download Tabler to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, yarn and more.
4
+ description: Get Tabler CSS, JS, and source code.
4
5
  ---
5
6
 
6
7
  ## CDN via jsDelivr
@@ -17,6 +18,7 @@ You can also include additional Tabler plugins:
17
18
  ```html
18
19
  <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-flags.min.css">
19
20
  <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-payments.min.css">
21
+ <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-social.min.css">
20
22
  <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-vendors.min.css">
21
23
  ```
22
24
 
@@ -26,10 +28,6 @@ Install Tabler in your Node.js powered apps with the npm package:
26
28
 
27
29
  <TabsPackage name="@tabler/core" />
28
30
 
29
- OR install for Webfonts
30
-
31
- <TabsPackage name="@tabler/icons-webfont" />
32
-
33
31
  Tabler uses other packages to enhance the functionality for example charts and input masks. These are not automatically installed to avoid huge
34
32
  dependency trees and need to be installed by using npm install. We support the following packages as of writing.
35
33
 
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: FAQ
3
- description: Answers to the most frequently asked questions.
3
+ summary: Answers to the most frequently asked questions.
4
+ description: Common questions and answers.
5
+ order: 12
4
6
  ---
5
7
 
6
8
  ## I found an issue, what can I do?
@@ -0,0 +1,96 @@
1
+ ---
2
+ title: How to Contribute
3
+ summary: This guide explains how to contribute to Tabler, from setting up a development environment to making and testing changes. It covers essential steps like forking the repository, installing dependencies, and submitting a pull request to help improve Tabler's features and functionality.
4
+ description: Guide to contributing to Tabler and setting up for development.
5
+ ---
6
+
7
+ Contributions are always welcome and highly encouraged! Whether you're new to open source or a seasoned contributor, your input helps make Tabler better for everyone. If you're new to open source, [start here](https://opensource.guide/how-to-contribute/) to learn more about contributing.
8
+
9
+ ## Contribution Requirements
10
+
11
+ When contributing to Tabler, please adhere to the following guidelines:
12
+
13
+ 1. By submitting a contribution, you grant a non-exclusive license to the Tabler project to use your contribution in any context deemed appropriate.
14
+ 2. If your contribution includes content from other sources, it must be appropriately licensed under an open source license.
15
+ 3. Contributions must be submitted via GitHub pull requests.
16
+ 4. Ensure your code works in all supported browsers (refer to our [browser support documentation](/docs/ui/getting-started/browser-support)).
17
+
18
+ ## Installation
19
+
20
+ Follow these steps to set up Tabler for development:
21
+
22
+ 1. Fork the repository: [Guide to forking](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
23
+
24
+ 2. Clone the repository to your local machine:
25
+
26
+ ```bash
27
+ git clone https://github.com/YOUR_USERNAME/tabler.git
28
+ ```
29
+
30
+ 3. Create a new branch for your changes:
31
+
32
+ ```bash
33
+ git checkout -b your-branch-name
34
+ ```
35
+
36
+ ## Development
37
+
38
+ To set up Tabler for development, follow these steps:
39
+
40
+ <div className="steps">
41
+
42
+ ### Ensure Node.js and npm are installed
43
+
44
+ You’ll need Node.js (v20 or higher) and pnpm to compile Tabler’s files. If you don’t have them installed, download and install them from the official websites:
45
+
46
+ - [Node.js](https://nodejs.org/)
47
+ - [pnpm](https://pnpm.io/)
48
+
49
+ ### Install Ruby and Bundler
50
+
51
+ Tabler uses Ruby and Bundler to manage dependencies. Install Ruby and Bundler by following the instructions in the [Ruby documentation](https://www.ruby-lang.org/en/documentation/installation/) and the [Bundler website](https://bundler.io/).
52
+
53
+ ### Install dependencies
54
+
55
+ Run the following command to install all required npm packages. We recommend using pnpm for faster installation:
56
+
57
+ ```bash
58
+ pnpm install
59
+ ```
60
+
61
+ ### Install Jekyll
62
+
63
+ Tabler uses Jekyll to build the documentation. Install Jekyll by running the following command:
64
+
65
+ ```bash
66
+ bundle install
67
+ ```
68
+
69
+ ### Start developer mode
70
+
71
+ Use the following command to enable autocompilation with live reload. This will start a local server at `http://localhost:3000/`:
72
+
73
+ ```bash
74
+ pnpm run dev
75
+ ```
76
+
77
+ ### Make changes
78
+
79
+ Make your changes in the appropriate folders, such as `./src/` or `./docs/`. Avoid modifying files in `./dist/`, as they are auto-generated during the build process and will be overwritten.
80
+ </div>
81
+
82
+ ## Compiling for Production
83
+
84
+ Before submitting a pull request, ensure your changes are properly compiled and tested:
85
+
86
+ 1. Compile the production files
87
+
88
+ ```bash
89
+ pnpm run build
90
+ ```
91
+
92
+ 2. Test all pages to confirm everything works as expected.
93
+
94
+ ## Submitting Your Contribution
95
+
96
+ Once your changes are ready, create a pull request (PR) on GitHub. Make sure to include a clear and concise description of the changes and their purpose. Thank you for contributing to Tabler!
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: Introduction
3
- description: Free and open-source HTML Dashboard UI Kit built on Bootstrap
3
+ summary: Free and open-source HTML Dashboard UI Kit built on Bootstrap
4
+ order: 1
5
+ description: Overview of Tabler UI Kit.
4
6
  ---
5
7
 
6
8
  ## What is Tabler?
@@ -11,30 +13,4 @@ Tabler is fully responsive and compatible with all modern browsers. Thanks to it
11
13
 
12
14
  Tabler is a perfect solution if you want to create an interface which is not only user-friendly but also fully responsive. Thanks to the big choice of ready-made components, you can customize your design and adapt it to the needs of even the most demanding users. On top of that, Tabler is an open source solution, continuously developed and improved by the open source community.
13
15
 
14
- ![Screencap of tabler site showing global traffic and statistics](https://raw.githubusercontent.com/tabler/tabler/dev/src/static/tabler-preview.png)
15
-
16
- ## Set up the environment
17
-
18
- To use our build system and run our documentation locally, you'll need a copy of Tabler's source files. Follow the steps below:
19
-
20
- 1. [Install Node.js](https://nodejs.org/download/), which we use to manage our dependencies.
21
- 2. Navigate to the root `/tabler` directory and run `npm install` to install our local dependencies listed in `package.json`.
22
- 3. [Install Ruby](https://ruby-lang.org/en/documentation/installation/) - the recommended version is [2.5.5](https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.5.tar.gz).
23
- 4. [Install Bundler](https://bundler.io) with `gem install bundler` and, finally, run `bundle install`. It will install all Ruby dependencies, such as [Jekyll and plugins](https://jekyllrb.com).
24
-
25
- ### Windows users
26
- 1. [Install Git](https://git-scm.com/download/win) in `C:\Program Files\git\bin` directory and run `npm config set script-shell "C:\Program Files\git\bin\bash.exe"` to change the default shell.
27
- 2. [Install Ruby+Devkit](https://rubyinstaller.org/downloads/) - recommended version is [2.5.5](https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.5-1/rubyinstaller-devkit-2.5.5-1-x86.exe).
28
- 3. [Read guide](https://jekyllrb.com/docs/installation/windows/) to get Jekyll up and running without problems.
29
-
30
- Once you've completed the setup, you'll be able to run the various commands provided from the command line.
31
-
32
- ## Build Tabler locally
33
-
34
- 1. From the root `/tabler` directory, run `npm run start` in the command line.
35
- 2. Open [http://localhost:3000](http://localhost:3000) in your browser, and voilà.
36
- 3. Any change in `/src` directory will build the application and refresh the page.
37
-
38
- ## Bugs and feature requests
39
-
40
- Found a bug or have a feature request? [Please open a new issue](https://github.com/tabler/tabler/issues/new).
16
+ <img src="https://raw.githubusercontent.com/tabler/tabler/dev/src/static/tabler-preview.png?2" src-dark="https://raw.githubusercontent.com/tabler/tabler/dev/src/static/tabler-preview-dark.png?2" alt="Screencap of tabler site showing global traffic and statistics" />
@@ -0,0 +1,67 @@
1
+ ---
2
+ title: Installation
3
+ order: 1
4
+ summary: Learn how to set up Tabler in your project by creating a basic HTML file, adding Tabler’s CSS and JavaScript, and exploring its powerful components to build responsive and visually stunning web applications.
5
+ description: "Set up Tabler: HTML, CSS, JS, and build stunning UIs."
6
+ ---
7
+
8
+ This guide will take you through the essential steps to set up Tabler in your project, from creating a basic HTML file to incorporating Tabler’s styles and scripts. Let’s dive in!
9
+
10
+ <div className="steps">
11
+
12
+ ### Step 1: Create a Basic HTML File
13
+
14
+ Begin by creating a new `index.html` file in the root of your project. This file will serve as the foundation for your Tabler-based interface. Include the basic HTML structure and a `<meta name="viewport">` tag for proper responsiveness:
15
+
16
+ ```html
17
+ <!doctype html>
18
+ <html lang="en">
19
+ <head>
20
+ <meta charset="utf-8">
21
+ <meta name="viewport" content="width=device-width, initial-scale=1">
22
+ <title>Tabler demo</title>
23
+ </head>
24
+ <body>
25
+ <h1>Hello, world!</h1>
26
+ </body>
27
+ </html>
28
+ ```
29
+
30
+ ### Step 2: Add Tabler CSS and JavaScript
31
+
32
+ Enhance your page by including Tabler's CSS and JavaScript files. Use the following links to load the core Tabler styles and scripts from the CDN:
33
+
34
+ ```html
35
+ <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler.min.css">
36
+ <script src="$TABLER_CDN/dist/js/tabler.min.js"></script>
37
+ ```
38
+
39
+ Update your HTML file to include these resources:
40
+
41
+ ```html
42
+ <!doctype html>
43
+ <html lang="en">
44
+ <head>
45
+ <meta charset="utf-8">
46
+ <meta name="viewport" content="width=device-width, initial-scale=1">
47
+ <title>Tabler Demo</title>
48
+ <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler.min.css">
49
+ </head>
50
+ <body>
51
+ <h1>Hello, Tabler!</h1>
52
+ <script src="$TABLER_CDN/dist/js/tabler.min.js"></script>
53
+ </body>
54
+ </html>
55
+ ```
56
+
57
+ This setup includes the Tabler CSS and JavaScript via a CDN, providing a responsive and functional base for your project.
58
+
59
+ You can also download the files and include them locally in your project. For more information, see the [Download](/docs/ui/getting-started/download) page.
60
+
61
+ ### 3. Open in Your Browser
62
+
63
+ Save the file and open it in your browser. You should see your first Tabler-powered page! From here, you can start adding layouts and components to create a fully functional and visually appealing web application.
64
+
65
+ </div>
66
+
67
+ With these simple steps, you're ready to explore Tabler's features and build stunning web interfaces. For inspiration and guidance, you can view live demos at [preview.tabler.io](https://preview.tabler.io) and consult our [official documentation](https://tabler.io/docs) for detailed instructions and examples.
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: Tabler License
3
+ summary: The MIT license grants you the flexibility to use Tabler in commercial or personal projects, modify its code, and distribute it freely. Ensure you include the required license and copyright notices to stay compliant with the terms.
4
+ description: "Tabler's MIT license: freedom to use, modify, and share."
5
+ ---
6
+
7
+ Tabler is an open-source project licensed under the **MIT license**, giving you extensive freedom to use, modify, and distribute the software. This license ensures that you can adapt Tabler to your needs while maintaining the required attributions. While attribution is not required, it is greatly appreciated to acknowledge the hard work of the developers.
8
+
9
+ ## What You Can Do with Tabler
10
+
11
+ The MIT license allows you to:
12
+ - Use Tabler in **commercial projects**.
13
+ - Use Tabler in **personal or private projects**.
14
+ - **Modify and customize** the source code to fit your requirements.
15
+ - **Distribute** the original or modified code.
16
+ - **Sublicense**: Integrate Tabler into projects with a more restrictive license.
17
+
18
+ ## What You Cannot Do with Tabler
19
+
20
+ - The software is provided **“as is”**, meaning you cannot hold the authors or contributors liable for any issues, bugs, or damages that may arise from its use.
21
+
22
+ ## What You Must Do When Using Tabler
23
+
24
+ When using Tabler, you must:
25
+ 1. Include the **license notice** in all copies of the work.
26
+ 2. Include the **copyright notice** in all copies of the work, except for the footer of the example HTML pages provided in the repository.
27
+
28
+ For more details, please refer to the full [Tabler License](https://github.com/tabler/tabler/blob/main/LICENSE).
29
+
30
+ By adhering to these requirements, you help ensure the continued openness and usability of Tabler for everyone. Thank you for supporting open-source software!
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Tabler UI
3
+ order: 1
4
+ description: Free and open source web application UI kit based on Bootstrap
5
+ summary: Tabler UI is a carefully crafted collection of modern and responsive user interface components. Built on top of Bootstrap, it helps developers create stunning and functional web applications quickly and efficiently.
6
+ ---
7
+
8
+ ![](/docs/cover-tabler.png)
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Layout
3
+ order: 3
4
+ description: Structure your UI effectively.
5
+ summary: The layout section covers essential tools and techniques for structuring content and organizing UI elements, helping you build visually appealing and functional designs.
6
+ ---