@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
@@ -0,0 +1,106 @@
1
+ ---
2
+ title: Navbars
3
+ summary: A navbar serves as a central navigation tool, offering users quick and easy access to key sections of a website or application, improving usability and enhancing the overall user experience.
4
+ description: Create and customize responsive navigation bars with ease.
5
+ ---
6
+
7
+ The navbar is a core component of any website or application, serving as the primary navigation tool. It provides users with quick access to key sections, enhancing usability and improving the overall user experience. Positioned typically at the top of the page, the navbar can contain links, buttons, branding elements, and even interactive components like dropdown menus or search bars.
8
+
9
+ With Tabler's utility classes, creating and customizing a responsive navbar is straightforward. Whether you’re building a simple site or a complex dashboard, Tabler’s navbar utilities offer the flexibility to design navigation that aligns perfectly with your project’s requirements.
10
+
11
+
12
+
13
+ ## Sample navbar
14
+
15
+ To create a navbar, use the `.navbar` class. The navbar is a horizontal bar that contains links to different sections of a website. It is typically placed at the top of the page and is used to provide navigation to the rest of the site.
16
+
17
+ ```html
18
+ <header class="navbar navbar-expand-md d-print-none">
19
+ ...
20
+ </header>
21
+ ```
22
+
23
+ The navbar can contain links, buttons, and other elements. You can customize the appearance of the navbar by adding classes to the elements inside it.
24
+
25
+ ```html example fullpage vcentered background="surface" padding={0} height="20rem"
26
+ <header class="navbar navbar-expand-md d-print-none">
27
+ <div class="container-xl">
28
+ <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">
29
+ <span class="navbar-toggler-icon"></span>
30
+ </button>
31
+ <div class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
32
+ <a href="javascript:void(0)">
33
+ <svg xmlns="http://www.w3.org/2000/svg" width="110" height="32" viewBox="0 0 232 68" class="navbar-brand-image">
34
+ <path d="M64.6 16.2C63 9.9 58.1 5 51.8 3.4 40 1.5 28 1.5 16.2 3.4 9.9 5 5 9.9 3.4 16.2 1.5 28 1.5 40 3.4 51.8 5 58.1 9.9 63 16.2 64.6c11.8 1.9 23.8 1.9 35.6 0C58.1 63 63 58.1 64.6 51.8c1.9-11.8 1.9-23.8 0-35.6zM33.3 36.3c-2.8 4.4-6.6 8.2-11.1 11-1.5.9-3.3.9-4.8.1s-2.4-2.3-2.5-4c0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-3.7 4.6-4.8 3.9-1.7 6-1.7 4.1.6 6 1.7 3.4 2.7 4.5 4.7c.9 1.9 1.5 4.1 1.5 6.3zm-12.2-7.5c-3.7 0-5.9 1.7-6.6 5.2h12.6v-.3c-.1-1.3-.8-2.5-2-3.5s-2.5-1.4-4-1.4zm30.3-5.2c1 0 1.8.3 2.4.8.7.5 1 1.2 1 1.9 0 1-.3 1.7-.8 2.2-.5.5-1.1.8-1.8.7-.5 0-1-.1-1.6-.3-.2-.1-.4-.1-.6-.2-.4-.1-.7-.1-1.1-.1-.8 0-1.6.3-2.4.8s-1.4 1.3-1.9 2.3-.7 2.3-.7 3.7v11.4c0 .8-.3 1.5-.8 2.1-.5.6-1.2.8-2.1.8s-1.5-.3-2.1-.8c-.5-.6-.8-1.3-.8-2.1V28.8c0-.8.3-1.5.8-2.1.5-.6 1.2-.8 2.1-.8s1.5.3 2.1.8c.5.6.8 1.3.8 2.1v.6c.7-1.3 1.8-2.3 3.2-3 1.3-.7 2.8-1 4.3-1z" fill-rule="evenodd" clip-rule="evenodd" fill="#4a4a4a"></path>
36
+ </svg>
37
+ </a>
38
+ </div>
39
+ <ul class="navbar-nav">
40
+ <li class="nav-item active">
41
+ <a class="nav-link" href="javascript:void(0)">
42
+ <span class="nav-link-icon">
43
+ <!-- Download SVG icon from http://tabler.io/icons/icon/home -->
44
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-home">
45
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
46
+ <path d="M5 12l-2 0l9 -9l9 9l-2 0" />
47
+ <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
48
+ <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
49
+ </svg>
50
+ </span>
51
+ <span class="nav-link-title">
52
+ Home
53
+ </span>
54
+ </a>
55
+ </li>
56
+ <li class="nav-item">
57
+ <a class="nav-link" href="javascript:void(0)">
58
+ <span class="nav-link-icon"><!-- Download SVG icon from http://tabler.io/icons/icon/checkbox -->
59
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-user">
60
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
61
+ <path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" />
62
+ <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
63
+ </svg>
64
+ </span>
65
+ <span class="nav-link-title">
66
+ Profile
67
+ </span>
68
+ </a>
69
+ </li>
70
+ <li class="nav-item">
71
+ <a class="nav-link" href="javascript:void(0)">
72
+ <span class="nav-link-icon"><!-- Download SVG icon from http://tabler.io/icons/icon/checkbox -->
73
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
74
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
75
+ <path d="M9 11l3 3l8 -8"></path>
76
+ <path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9"></path>
77
+ </svg>
78
+ </span>
79
+ <span class="nav-link-title">
80
+ Settings
81
+ </span>
82
+ </a>
83
+ </li>
84
+ </ul>
85
+ <div class="navbar-nav flex-row order-md-last ms-auto">
86
+ <div class="nav-item dropdown">
87
+ <a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown" aria-label="Open user menu">
88
+ <span class="avatar avatar-sm" style="background-image: url(/static/samples/avatars/044m.jpg)"></span>
89
+ <div class="d-none d-xl-block ps-2">
90
+ <div>Paweł Kuna</div>
91
+ <div class="mt-1 small text-secondary">UI Designer</div>
92
+ </div>
93
+ </a>
94
+ <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
95
+ <a href="#" class="dropdown-item">Status</a>
96
+ <a href="./profile.html" class="dropdown-item">Profile</a>
97
+ <a href="#" class="dropdown-item">Feedback</a>
98
+ <div class="dropdown-divider"></div>
99
+ <a href="./settings.html" class="dropdown-item">Settings</a>
100
+ <a href="./sign-in.html" class="dropdown-item">Logout</a>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </header>
106
+ ```
@@ -0,0 +1,187 @@
1
+ ---
2
+ title: Navs and tabs
3
+ summary: This guide covered the basics of creating different types of navigation bars and tabs, including horizontal, vertical, pill-shaped, and underline-styled navs.
4
+ description: "Essential guide to nav styles: tabs, pills, dropdowns, and more."
5
+ ---
6
+
7
+ Navigation bars are essential components of modern web applications, providing users with intuitive ways to navigate between different sections and content. This guide explores various types of navigation bars and tabs that can be easily implemented using predefined classes in HTML and CSS. Each type serves specific use cases, from horizontal and vertical layouts to tabbed interfaces and dropdown menus. By utilizing these examples, developers can enhance the usability and aesthetics of their web projects.
8
+
9
+ ## Horizontal nav
10
+
11
+ If you want to create a horizontal navigation bar, you can use the `.nav` class. The `.nav-item` class is used to style each item within the navigation bar, and `.nav-link` is applied to the links. The `.active` class highlights the current active link, while the `.disabled` class styles non-clickable links.
12
+
13
+ ```html
14
+ <ul class="nav">
15
+ <li class="nav-item">
16
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
17
+ </li>
18
+ <li class="nav-item">
19
+ <a class="nav-link" href="#">Link</a>
20
+ </li>
21
+ <li class="nav-item">
22
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
23
+ </li>
24
+ </ul>
25
+ ```
26
+
27
+ Look at the example below to see how the horizontal navigation bar is displayed.
28
+
29
+ ```html example centered
30
+ <ul class="nav">
31
+ <li class="nav-item">
32
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
33
+ </li>
34
+ <li class="nav-item">
35
+ <a class="nav-link" href="#">Link</a>
36
+ </li>
37
+ <li class="nav-item">
38
+ <a class="nav-link" href="#">Link</a>
39
+ </li>
40
+ <li class="nav-item">
41
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
42
+ </li>
43
+ </ul>
44
+ ```
45
+
46
+ ## Vertical nav
47
+
48
+ To create a vertical navigation bar, add the `.flex-column` class to the `.nav` element. This arranges the navigation items in a column instead of a row, making it suitable for sidebars or vertical menus.
49
+
50
+ ```html
51
+ <ul class="nav flex-column">
52
+ ...
53
+ </ul>
54
+ ```
55
+
56
+ There is an example below to see how the vertical navigation bar is displayed.
57
+
58
+ ```html example centered
59
+ <ul class="nav flex-column">
60
+ <li class="nav-item">
61
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
62
+ </li>
63
+ <li class="nav-item">
64
+ <a class="nav-link" href="#">Link</a>
65
+ </li>
66
+ <li class="nav-item">
67
+ <a class="nav-link" href="#">Link</a>
68
+ </li>
69
+ <li class="nav-item">
70
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
71
+ </li>
72
+ </ul>
73
+ ```
74
+
75
+ ## Tabs
76
+
77
+ To create a tabbed navigation interface, use the `.nav-tabs` class. This is ideal for displaying different content sections within a single interface, where each tab represents a section.
78
+
79
+ ```html
80
+ <ul class="nav nav-tabs">
81
+ ...
82
+ </ul>
83
+ ```
84
+
85
+ Example below shows how the tabbed navigation interface is displayed.
86
+
87
+ ```html example centered
88
+ <ul class="nav nav-tabs">
89
+ <li class="nav-item">
90
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
91
+ </li>
92
+ <li class="nav-item">
93
+ <a class="nav-link" href="#">Link</a>
94
+ </li>
95
+ <li class="nav-item">
96
+ <a class="nav-link" href="#">Link</a>
97
+ </li>
98
+ <li class="nav-item">
99
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
100
+ </li>
101
+ </ul>
102
+ ```
103
+
104
+ ## Pills
105
+
106
+ For a pill-shaped navigation style, use the `.nav-pills` class. This is a great choice for a sleek, modern look, especially in interactive UI components.
107
+
108
+ ```html example centered
109
+ <ul class="nav nav-pills">
110
+ <li class="nav-item">
111
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
112
+ </li>
113
+ <li class="nav-item">
114
+ <a class="nav-link" href="#">Link</a>
115
+ </li>
116
+ <li class="nav-item">
117
+ <a class="nav-link" href="#">Link</a>
118
+ </li>
119
+ <li class="nav-item">
120
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
121
+ </li>
122
+ </ul>
123
+ ```
124
+
125
+ ## Underline
126
+
127
+ To create a navigation bar with an underline effect for active links, use the `.nav-underline` class. This provides a clean and minimalistic style.
128
+
129
+ ```html example centered
130
+ <ul class="nav nav-underline">
131
+ <li class="nav-item">
132
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
133
+ </li>
134
+ <li class="nav-item">
135
+ <a class="nav-link" href="#">Link</a>
136
+ </li>
137
+ <li class="nav-item">
138
+ <a class="nav-link" href="#">Link</a>
139
+ </li>
140
+ <li class="nav-item">
141
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
142
+ </li>
143
+ </ul>
144
+ ```
145
+
146
+ ## Tabs with Dropdown
147
+
148
+ You can enhance tabs by adding dropdown menus using the `.dropdown` class inside a `.nav-tabs` structure. This allows for additional options under a single tab, improving the navigation experience.
149
+
150
+ ```html
151
+ <ul class="nav nav-tabs">
152
+ ...
153
+ <li class="nav-item dropdown">
154
+ <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">Dropdown</a>
155
+ <ul class="dropdown-menu">
156
+ ...
157
+ </ul>
158
+ </li>
159
+ ...
160
+ </ul>
161
+ ```
162
+
163
+ Example below shows how tabs with dropdown menus are displayed.
164
+
165
+ ```html example centered height="15rem"
166
+ <ul class="nav nav-tabs">
167
+ <li class="nav-item">
168
+ <a class="nav-link active" aria-current="page" href="#">Active</a>
169
+ </li>
170
+ <li class="nav-item dropdown">
171
+ <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">Dropdown</a>
172
+ <ul class="dropdown-menu">
173
+ <li><a class="dropdown-item" href="#">Action</a></li>
174
+ <li><a class="dropdown-item" href="#">Another action</a></li>
175
+ <li><a class="dropdown-item" href="#">Something else here</a></li>
176
+ <li><hr class="dropdown-divider"></li>
177
+ <li><a class="dropdown-item" href="#">Separated link</a></li>
178
+ </ul>
179
+ </li>
180
+ <li class="nav-item">
181
+ <a class="nav-link" href="#">Link</a>
182
+ </li>
183
+ <li class="nav-item">
184
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
185
+ </li>
186
+ </ul>
187
+ ```
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  title: Page headers
3
- description: Page heading examples for Tabler
3
+ summary: Page heading examples for Tabler
4
+ description: Examples of Tabler page headers.
4
5
  ---
5
6
 
6
7
  ## Simple header
7
8
 
8
- ```html example code vcentered
9
+ ```html example vcentered
9
10
  <div class="page-header">
10
11
  <div class="row align-items-center">
11
12
  <div class="col">
@@ -46,7 +47,7 @@ description: Page heading examples for Tabler
46
47
 
47
48
  ## With meta, avatar and actions
48
49
 
49
- ```html example code vcentered
50
+ ```html example vcentered
50
51
  <div class="page-header">
51
52
  <div class="row align-items-center">
52
53
  <div class="col-auto">
@@ -106,7 +107,7 @@ description: Page heading examples for Tabler
106
107
 
107
108
  ## With meta, search and actions
108
109
 
109
- ```html example code vcentered
110
+ ```html example vcentered
110
111
  <div class="page-header">
111
112
  <div class="row align-items-center">
112
113
  <div class="col">
@@ -145,7 +146,7 @@ description: Page heading examples for Tabler
145
146
 
146
147
  Page header with a border to separate content is an effective way to organize and present information in a clear and visually appealing way.
147
148
 
148
- ```html example code fullpage
149
+ ```html example fullpage
149
150
  <div class="page-header page-header-border">
150
151
  <div class="container-fluid">
151
152
  <div class="row align-items-center">
@@ -189,15 +190,21 @@ A page header with breadcrumb and actions is a common design element found in ma
189
190
 
190
191
  In addition to the breadcrumb, the header often includes actions or buttons that allow the user to perform common tasks related to the current page. These actions may include things like adding a new item, editing existing content, or deleting items.
191
192
 
192
- ```html example code vcentered
193
+ ```html example vcentered
193
194
  <div class="page-header">
194
195
  <div class="row align-items-center mw-100">
195
196
  <div class="col">
196
197
  <div class="mb-1">
197
198
  <ol class="breadcrumb" aria-label="breadcrumbs">
198
- <li class="breadcrumb-item"><a href="#">Home</a></li>
199
- <li class="breadcrumb-item"><a href="#">Library</a></li>
200
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Articles</a></li>
199
+ <li class="breadcrumb-item">
200
+ <a href="#">Home</a>
201
+ </li>
202
+ <li class="breadcrumb-item">
203
+ <a href="#">Library</a>
204
+ </li>
205
+ <li class="breadcrumb-item active" aria-current="page">
206
+ <a href="#">Articles</a>
207
+ </li>
201
208
  </ol>
202
209
  </div>
203
210
  <h2 class="page-title">
@@ -1,15 +1,18 @@
1
1
  ---
2
2
  title: Page layouts
3
- description: Learn how to build a sample version of the dashboard
3
+ summary: Learn how to build a sample version of the dashboard
4
+ description: Learn to design dashboard layouts.
4
5
  ---
5
6
 
6
7
  <Callout>
7
- Before you start with this section, make sure you have followed the [installation guideline](/docs/ui/getting-started/download).
8
+ Before you start with this section, make sure you have followed the [installation guideline](/docs/ui/getting-started/installation).
8
9
  </Callout>
9
10
 
10
11
  ## Sample layout
11
12
 
12
- ```html example code fullpage resizable height="30rem"
13
+ To create a sample version of the dashboard, you can use the following code snippet. This code snippet will help you to create a dashboard layout with a header.
14
+
15
+ ```html example fullpage resizable height="30rem" background="surface"
13
16
  <div class="page">
14
17
  <header class="navbar navbar-expand-sm navbar-light d-print-none">
15
18
  <div class="container-xl">
@@ -18,7 +21,6 @@ description: Learn how to build a sample version of the dashboard
18
21
  <img src="https://preview.tabler.io/static/logo.svg" width="110" height="32" alt="Tabler" class="navbar-brand-image" />
19
22
  </a>
20
23
  </h1>
21
-
22
24
  <div class="navbar-nav flex-row order-md-last">
23
25
  <div class="nav-item">
24
26
  <a href="#" class="nav-link d-flex lh-1 text-reset p-0">
@@ -65,10 +67,12 @@ description: Learn how to build a sample version of the dashboard
65
67
 
66
68
  ## Sidebar layout
67
69
 
68
- ```html example code fullpage resizable height="30rem"
70
+ To create a sidebar layout, you can use the following code snippet. This code snippet will help you to create a sidebar layout with a header.
71
+
72
+ ```html example fullpage resizable height="30rem" background="surface"
69
73
  <div class="page">
70
74
  <!-- Sidebar -->
71
- <aside class="navbar navbar-vertical navbar-expand-sm navbar-dark">
75
+ <aside class="navbar navbar-vertical navbar-expand-sm" data-bs-theme="dark">
72
76
  <div class="container-fluid">
73
77
  <button class="navbar-toggler" type="button">
74
78
  <span class="navbar-toggler-icon"></span>