@tabler/core 1.1.0 → 1.1.1

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 (145) hide show
  1. package/docs/emails/index.mdx +14 -0
  2. package/docs/emails/introduction/compiled-html.mdx +29 -0
  3. package/docs/emails/introduction/contents.mdx +63 -0
  4. package/docs/emails/introduction/index.mdx +9 -0
  5. package/docs/emails/introduction/source-html.mdx +26 -0
  6. package/docs/icons/index.mdx +13 -0
  7. package/docs/icons/libraries/index.mdx +5 -0
  8. package/docs/icons/libraries/preact.mdx +42 -0
  9. package/docs/icons/libraries/react.mdx +42 -0
  10. package/docs/icons/libraries/solidjs.mdx +42 -0
  11. package/docs/icons/libraries/svelte.mdx +43 -0
  12. package/docs/icons/libraries/vue.mdx +50 -0
  13. package/docs/icons/libraries/webfont.mdx +60 -0
  14. package/docs/icons/plugins/figma.mdx +15 -0
  15. package/docs/icons/plugins/index.mdx +4 -0
  16. package/docs/icons/static-files/eps.mdx +15 -0
  17. package/docs/icons/static-files/index.mdx +5 -0
  18. package/docs/icons/static-files/pdf.mdx +15 -0
  19. package/docs/icons/static-files/png.mdx +31 -0
  20. package/docs/icons/static-files/svg.mdx +85 -0
  21. package/docs/illustrations/index.mdx +8 -0
  22. package/docs/illustrations/introduction/contents.mdx +77 -0
  23. package/docs/illustrations/introduction/customization.mdx +1198 -0
  24. package/docs/illustrations/introduction/index.mdx +5 -0
  25. package/docs/illustrations/introduction/license.mdx +90 -0
  26. package/docs/img/browsers/brave.svg +1 -0
  27. package/docs/img/browsers/chrome.svg +1 -0
  28. package/docs/img/browsers/edge.svg +1 -0
  29. package/docs/img/browsers/electron.svg +1 -0
  30. package/docs/img/browsers/firefox.svg +1 -0
  31. package/docs/img/browsers/internet-explorer.svg +1 -0
  32. package/docs/img/browsers/opera.svg +1 -0
  33. package/docs/img/browsers/safari.svg +1 -0
  34. package/docs/img/browsers/vivaldi.svg +1 -0
  35. package/docs/img/cover-illustrations-dark.png +0 -0
  36. package/docs/img/cover-illustrations.png +0 -0
  37. package/docs/img/cover-tabler-dark.png +0 -0
  38. package/docs/img/cover-tabler.png +0 -0
  39. package/docs/img/icons/figma-plugin.png +0 -0
  40. package/docs/img/icons/package-angular-dark.png +0 -0
  41. package/docs/img/icons/package-angular.png +0 -0
  42. package/docs/img/icons/package-eps-dark.png +0 -0
  43. package/docs/img/icons/package-eps.png +0 -0
  44. package/docs/img/icons/package-js-dark.png +0 -0
  45. package/docs/img/icons/package-js.png +0 -0
  46. package/docs/img/icons/package-pdf-dark.png +0 -0
  47. package/docs/img/icons/package-pdf.png +0 -0
  48. package/docs/img/icons/package-png-dark.png +0 -0
  49. package/docs/img/icons/package-png.png +0 -0
  50. package/docs/img/icons/package-preact-dark.png +0 -0
  51. package/docs/img/icons/package-preact.png +0 -0
  52. package/docs/img/icons/package-react-dark.png +0 -0
  53. package/docs/img/icons/package-react-native-dark.png +0 -0
  54. package/docs/img/icons/package-react-native.png +0 -0
  55. package/docs/img/icons/package-react.png +0 -0
  56. package/docs/img/icons/package-solidjs-dark.png +0 -0
  57. package/docs/img/icons/package-solidjs.png +0 -0
  58. package/docs/img/icons/package-sprite-dark.png +0 -0
  59. package/docs/img/icons/package-sprite.png +0 -0
  60. package/docs/img/icons/package-svelte-dark.png +0 -0
  61. package/docs/img/icons/package-svelte.png +0 -0
  62. package/docs/img/icons/package-svg-dark.png +0 -0
  63. package/docs/img/icons/package-svg.png +0 -0
  64. package/docs/img/icons/package-vue-dark.png +0 -0
  65. package/docs/img/icons/package-vue.png +0 -0
  66. package/docs/img/icons/package-webfont-dark.png +0 -0
  67. package/docs/img/icons/package-webfont.png +0 -0
  68. package/docs/index.mdx +16 -0
  69. package/docs/ui/base/colors.mdx +83 -0
  70. package/docs/ui/base/index.mdx +6 -0
  71. package/docs/ui/base/typography.mdx +311 -0
  72. package/docs/ui/components/alerts.mdx +406 -0
  73. package/docs/ui/components/autosize.mdx +25 -0
  74. package/docs/ui/components/avatars.mdx +227 -0
  75. package/docs/ui/components/badges.mdx +112 -0
  76. package/docs/ui/components/breadcrumb.mdx +199 -0
  77. package/docs/ui/components/buttons.mdx +1213 -0
  78. package/docs/ui/components/cards.mdx +417 -0
  79. package/docs/ui/components/carousel.mdx +459 -0
  80. package/docs/ui/components/charts.mdx +697 -0
  81. package/docs/ui/components/countup.mdx +165 -0
  82. package/docs/ui/components/datagrid.mdx +120 -0
  83. package/docs/ui/components/divider.mdx +68 -0
  84. package/docs/ui/components/dropdowns.mdx +302 -0
  85. package/docs/ui/components/dropzone.mdx +88 -0
  86. package/docs/ui/components/empty.mdx +149 -0
  87. package/docs/ui/components/icons.mdx +392 -0
  88. package/docs/ui/components/index.mdx +6 -0
  89. package/docs/ui/components/inline-player.mdx +58 -0
  90. package/docs/ui/components/modals.mdx +297 -0
  91. package/docs/ui/components/offcanvas.mdx +70 -0
  92. package/docs/ui/components/placeholder.mdx +273 -0
  93. package/docs/ui/components/popover.mdx +142 -0
  94. package/docs/ui/components/progress.mdx +241 -0
  95. package/docs/ui/components/range-slider.mdx +32 -0
  96. package/docs/ui/components/ribbons.mdx +207 -0
  97. package/docs/ui/components/segmented-control.mdx +401 -0
  98. package/docs/ui/components/spinners.mdx +135 -0
  99. package/docs/ui/components/statuses.mdx +322 -0
  100. package/docs/ui/components/steps.mdx +174 -0
  101. package/docs/ui/components/switch-icon.mdx +386 -0
  102. package/docs/ui/components/tables.mdx +397 -0
  103. package/docs/ui/components/tabs.mdx +396 -0
  104. package/docs/ui/components/timelines.mdx +697 -0
  105. package/docs/ui/components/tinymce.mdx +46 -0
  106. package/docs/ui/components/toasts.mdx +126 -0
  107. package/docs/ui/components/tooltips.mdx +65 -0
  108. package/docs/ui/components/tracking.mdx +548 -0
  109. package/docs/ui/components/vector-maps.mdx +166 -0
  110. package/docs/ui/forms/form-color-check.mdx +220 -0
  111. package/docs/ui/forms/form-elements.mdx +632 -0
  112. package/docs/ui/forms/form-fieldset.mdx +45 -0
  113. package/docs/ui/forms/form-helpers.mdx +91 -0
  114. package/docs/ui/forms/form-image-check.mdx +213 -0
  115. package/docs/ui/forms/form-input-mask.mdx +61 -0
  116. package/docs/ui/forms/form-selectboxes.mdx +398 -0
  117. package/docs/ui/forms/form-validation.mdx +62 -0
  118. package/docs/ui/forms/index.mdx +6 -0
  119. package/docs/ui/getting-started/browser-support.mdx +28 -0
  120. package/docs/ui/getting-started/customize.mdx +28 -0
  121. package/docs/ui/getting-started/download.mdx +44 -0
  122. package/docs/ui/getting-started/faq.mdx +30 -0
  123. package/docs/ui/getting-started/how-to-contribute.mdx +84 -0
  124. package/docs/ui/getting-started/index.mdx +16 -0
  125. package/docs/ui/getting-started/installation.mdx +67 -0
  126. package/docs/ui/getting-started/license.mdx +30 -0
  127. package/docs/ui/index.mdx +8 -0
  128. package/docs/ui/layout/index.mdx +6 -0
  129. package/docs/ui/layout/navbars.mdx +164 -0
  130. package/docs/ui/layout/navs-tabls.mdx +201 -0
  131. package/docs/ui/layout/page-headers.mdx +365 -0
  132. package/docs/ui/layout/page-layouts.mdx +213 -0
  133. package/docs/ui/plugins/flags.mdx +316 -0
  134. package/docs/ui/plugins/index.mdx +6 -0
  135. package/docs/ui/plugins/payments.mdx +152 -0
  136. package/docs/ui/plugins/social-icons.mdx +135 -0
  137. package/docs/ui/utilities/borders.mdx +260 -0
  138. package/docs/ui/utilities/cursors.mdx +63 -0
  139. package/docs/ui/utilities/index.mdx +5 -0
  140. package/docs/ui/utilities/interactions.mdx +26 -0
  141. package/docs/ui/utilities/margins.mdx +234 -0
  142. package/docs/ui/utilities/vertical-align.mdx +66 -0
  143. package/docs/ui/utilities/visually-hidden.mdx +12 -0
  144. package/package.json +6 -6
  145. package/LICENSE +0 -21
@@ -0,0 +1,88 @@
1
+ ---
2
+ title: Dropzone
3
+ summary: Dropzone is a simple JavaScript library that helps you add file drag and drop functionality to your web forms. It is one of the most popular drag and drop libraries on the web and is used by millions of people.
4
+ description: Drag-and-drop file upload tool.
5
+ ---
6
+
7
+ ## Basic usage
8
+
9
+ The basic implementation of Dropzone allows you to quickly enable drag-and-drop file uploads on your web forms. By default, it provides a fallback for browsers that don’t support drag-and-drop functionality. Below is an example of how to set up a simple Dropzone form.
10
+
11
+ ```html
12
+ <form class="dropzone" id="dropzone-default" action="." autocomplete="off" novalidate>
13
+ <div class="fallback">
14
+ <input name="file" type="file" />
15
+ </div>
16
+ </form>
17
+ ```
18
+
19
+ To initialize the Dropzone form, you need to create a new instance of the Dropzone class and pass the form element as an argument. Here’s how you can do it:
20
+
21
+ ```html
22
+ <script>
23
+ document.addEventListener("DOMContentLoaded", function () {
24
+ new Dropzone("#dropzone-default");
25
+ });
26
+ </script>
27
+ ```
28
+
29
+ The Dropzone form will now be active and ready to accept file uploads. When a user drags and drops a file onto the form, the file will be uploaded to the server automatically.
30
+
31
+ ```html example vendors height="240px" libs="dropzone"
32
+ <form class="dropzone" id="dropzone-default" action="." autocomplete="off" novalidate>
33
+ <div class="fallback">
34
+ <input name="..." type="file" />
35
+ </div>
36
+ </form>
37
+ <script>
38
+ document.addEventListener("DOMContentLoaded", function () {
39
+ new Dropzone("#dropzone-default");
40
+ });
41
+ </script>
42
+ ```
43
+
44
+ ## Add multiple files
45
+
46
+ To allow users to upload multiple files at once, you can enable the `multiple` attribute in the input field. This is particularly useful for applications that require batch uploads, such as image galleries or document management systems. Here’s how to configure Dropzone to accept multiple files:
47
+
48
+ ```html
49
+ <input name="..." type="file" multiple />
50
+ ```
51
+
52
+ By adding the `multiple` attribute to the input field, users can select multiple files from their local storage and upload them all at once. The Dropzone form will handle the file uploads automatically.
53
+
54
+ ```html example vendors height="240px" libs="dropzone"
55
+ <form class="dropzone" id="dropzone-mulitple" action="." autocomplete="off" novalidate>
56
+ <div class="fallback">
57
+ <input name="file" type="file" multiple />
58
+ </div>
59
+ </form>
60
+ <script>
61
+ document.addEventListener("DOMContentLoaded", function () {
62
+ new Dropzone("#dropzone-mulitple");
63
+ });
64
+ </script>
65
+ ```
66
+
67
+ ## Custom Dropzone
68
+
69
+ You can further enhance the user experience by customizing the Dropzone interface. For instance, you can modify the drop area with custom messages or styles to make the file upload process more engaging and user-friendly. Below is an example of a custom Dropzone configuration:
70
+
71
+ ```html example vendors height="240px" libs="dropzone"
72
+ <form class="dropzone" id="dropzone-custom" action="." autocomplete="off" novalidate>
73
+ <div class="fallback">
74
+ <input name="file" type="file" />
75
+ </div>
76
+ <div class="dz-message">
77
+ <h3 class="dropzone-msg-title">Your text here</h3>
78
+ <span class="dropzone-msg-desc">Your custom description here</span>
79
+ </div>
80
+ </form>
81
+ <script>
82
+ document.addEventListener("DOMContentLoaded", function () {
83
+ new Dropzone("#dropzone-custom");
84
+ });
85
+ </script>
86
+ ```
87
+
88
+ By customizing the drop area, you can align the file upload process with your application’s branding or specific requirements.
@@ -0,0 +1,149 @@
1
+ ---
2
+ title: Empty states
3
+ summary: Empty states or blank pages are commonly used as placeholders for first-use, empty data or error screens. Their aim is to engage users when there is no content to display and that is why their design is extremely important from the point of view of the user experience of your website or app.
4
+ description: Engage users in empty or error screens.
5
+ ---
6
+
7
+ ## Default markup
8
+
9
+ Use the default empty state to engage users in the critical moments of their experience with your website or app. A good empty state screen should let users know what is happening and what they should do next as well as encourage them to take action.
10
+
11
+ ```html example height="300px"
12
+ <div class="empty">
13
+ <div class="empty-icon">
14
+ <svg
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ class="icon"
17
+ width="24"
18
+ height="24"
19
+ viewBox="0 0 24 24"
20
+ stroke-width="2"
21
+ stroke="currentColor"
22
+ fill="none"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ >
26
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
27
+ <circle cx="12" cy="12" r="9" />
28
+ <line x1="9" y1="10" x2="9.01" y2="10" />
29
+ <line x1="15" y1="10" x2="15.01" y2="10" />
30
+ <path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" />
31
+ </svg>
32
+ </div>
33
+ <p class="empty-title">No results found</p>
34
+ <p class="empty-subtitle text-secondary">
35
+ Try adjusting your search or filter to find what you're looking for.
36
+ </p>
37
+ <div class="empty-action">
38
+ <a href="#" class="btn btn-primary">
39
+ <svg
40
+ xmlns="http://www.w3.org/2000/svg"
41
+ class="icon"
42
+ width="24"
43
+ height="24"
44
+ viewBox="0 0 24 24"
45
+ stroke-width="2"
46
+ stroke="currentColor"
47
+ fill="none"
48
+ stroke-linecap="round"
49
+ stroke-linejoin="round"
50
+ >
51
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
52
+ <circle cx="10" cy="10" r="7" />
53
+ <line x1="21" y1="21" x2="15" y2="15" />
54
+ </svg>
55
+ Search again
56
+ </a>
57
+ </div>
58
+ </div>
59
+ ```
60
+
61
+ ## Empty state with illustration
62
+
63
+ Make your empty state screen more attractive and engaging by adding an illustration. Thanks to a more personalized design, you will improve your brand image and make your website or app more user friendly.
64
+
65
+ ```html example height="300px"
66
+ <div class="empty">
67
+ <div class="empty-img">
68
+ <img src="..." height="128" alt="" />
69
+ </div>
70
+ <p class="empty-title">Invoices are managed from here</p>
71
+ <p class="empty-subtitle text-secondary">
72
+ Try adjusting your search or filter to find what you're looking for.
73
+ </p>
74
+ <div class="empty-action">
75
+ <a href="#" class="btn btn-primary">
76
+ <svg
77
+ xmlns="http://www.w3.org/2000/svg"
78
+ class="icon"
79
+ width="24"
80
+ height="24"
81
+ viewBox="0 0 24 24"
82
+ stroke-width="2"
83
+ stroke="currentColor"
84
+ fill="none"
85
+ stroke-linecap="round"
86
+ stroke-linejoin="round"
87
+ >
88
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
89
+ <line x1="12" y1="5" x2="12" y2="19" />
90
+ <line x1="5" y1="12" x2="19" y2="12" />
91
+ </svg>
92
+ New invoice
93
+ </a>
94
+ </div>
95
+ </div>
96
+ ```
97
+
98
+ ## Empty state with header
99
+
100
+ Instead of adding an icon or illustration you can simply give the text:
101
+
102
+ ```html example height="300px"
103
+ <div class="empty">
104
+ <div class="empty-header">404</div>
105
+ <p class="empty-title">Oops… You just found an error page</p>
106
+ <p class="empty-subtitle text-secondary">
107
+ Try adjusting your search or filter to find what you're looking for.
108
+ </p>
109
+ <div class="empty-action">
110
+ <a href="#" class="btn btn-primary">
111
+ <svg
112
+ xmlns="http://www.w3.org/2000/svg"
113
+ class="icon"
114
+ width="24"
115
+ height="24"
116
+ viewBox="0 0 24 24"
117
+ stroke-width="2"
118
+ stroke="currentColor"
119
+ fill="none"
120
+ stroke-linecap="round"
121
+ stroke-linejoin="round"
122
+ >
123
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
124
+ <line x1="5" y1="12" x2="19" y2="12" />
125
+ <line x1="5" y1="12" x2="11" y2="18" />
126
+ <line x1="5" y1="12" x2="11" y2="6" />
127
+ </svg>
128
+ Take me home
129
+ </a>
130
+ </div>
131
+ </div>
132
+ ```
133
+
134
+ ```html
135
+ <div class="empty">
136
+ <div class="empty-header">404</div>
137
+ <p class="empty-title">Oops… You just found an error page</p>
138
+ <p class="empty-subtitle text-secondary">
139
+ Try adjusting your search or filter to find what you're looking for.
140
+ </p>
141
+ <div class="empty-action">
142
+ <a href="#" class="btn btn-primary">
143
+ <!-- SVG icon from http://tabler.io/icons/icon/arrow-left -->
144
+ <svg>...</svg>
145
+ Take me home
146
+ </a>
147
+ </div>
148
+ </div>
149
+ ```
@@ -0,0 +1,392 @@
1
+ ---
2
+ title: Icons
3
+ summary: Use any of over 5000 icons created specifically for Tabler and make your dashboard look even more attractive. All icons are under MIT license, so you can use them without any problem both in private and commercial projects.
4
+ banner: icons
5
+ description: Enhance dashboards with custom icons.
6
+ ---
7
+
8
+ If you need to add icons to your website, you can use the Tabler Icons library. It contains over 5000 icons that you can use in your projects. All icons are under the MIT license, so you can use them without any problem both in private and commercial projects. You can find the Tabler Icons library [here](https://tabler-icons.io/).
9
+
10
+ ## Base icon
11
+
12
+ To add an icon to your code copy the SVG code from the Tabler Icons website and paste it into your HTML file.
13
+
14
+ ```html
15
+ <svg
16
+ xmlns="http://www.w3.org/2000/svg"
17
+ class="icon icon-tabler icon-tabler-heart"
18
+ width="24"
19
+ height="24"
20
+ viewBox="0 0 24 24"
21
+ stroke-width="2"
22
+ stroke="currentColor"
23
+ fill="none"
24
+ stroke-linecap="round"
25
+ stroke-linejoin="round"
26
+ >
27
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
28
+ <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"></path>
29
+ </svg>
30
+ ```
31
+
32
+ Results can be seen in the example below.
33
+
34
+ ```html example centered separated
35
+ <svg
36
+ xmlns="http://www.w3.org/2000/svg"
37
+ class="icon icon-tabler icon-tabler-heart"
38
+ width="24"
39
+ height="24"
40
+ viewBox="0 0 24 24"
41
+ stroke-width="2"
42
+ stroke="currentColor"
43
+ fill="none"
44
+ stroke-linecap="round"
45
+ stroke-linejoin="round"
46
+ >
47
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
48
+ <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"></path>
49
+ </svg>
50
+ <svg
51
+ xmlns="http://www.w3.org/2000/svg"
52
+ class="icon icon-tabler icon-tabler-ghost-2"
53
+ width="24"
54
+ height="24"
55
+ viewBox="0 0 24 24"
56
+ stroke-width="2"
57
+ stroke="currentColor"
58
+ fill="none"
59
+ stroke-linecap="round"
60
+ stroke-linejoin="round"
61
+ >
62
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
63
+ <path d="M10 9h.01"></path>
64
+ <path d="M14 9h.01"></path>
65
+ <path
66
+ d="M12 3a7 7 0 0 1 7 7v1l1 0a2 2 0 1 1 0 4l-1 0v3l2 3h-10a6 6 0 0 1 -6 -5.775l0 -.226l-1 0a2 2 0 0 1 0 -4l1 0v-1a7 7 0 0 1 7 -7z"
67
+ ></path>
68
+ <path d="M11 14h2a1 1 0 0 0 -2 0z"></path>
69
+ </svg>
70
+ <svg
71
+ xmlns="http://www.w3.org/2000/svg"
72
+ class="icon icon-tabler icon-tabler-lego"
73
+ width="24"
74
+ height="24"
75
+ viewBox="0 0 24 24"
76
+ stroke-width="2"
77
+ stroke="currentColor"
78
+ fill="none"
79
+ stroke-linecap="round"
80
+ stroke-linejoin="round"
81
+ >
82
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
83
+ <path d="M9.5 11l.01 0"></path>
84
+ <path d="M14.5 11l.01 0"></path>
85
+ <path d="M9.5 15a3.5 3.5 0 0 0 5 0"></path>
86
+ <path
87
+ d="M7 5h1v-2h8v2h1a3 3 0 0 1 3 3v9a3 3 0 0 1 -3 3v1h-10v-1a3 3 0 0 1 -3 -3v-9a3 3 0 0 1 3 -3"
88
+ ></path>
89
+ </svg>
90
+ <svg
91
+ xmlns="http://www.w3.org/2000/svg"
92
+ class="icon icon-tabler icon-tabler-building-carousel"
93
+ width="24"
94
+ height="24"
95
+ viewBox="0 0 24 24"
96
+ stroke-width="2"
97
+ stroke="currentColor"
98
+ fill="none"
99
+ stroke-linecap="round"
100
+ stroke-linejoin="round"
101
+ >
102
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
103
+ <path d="M12 12m-6 0a6 6 0 1 0 12 0a6 6 0 1 0 -12 0"></path>
104
+ <path d="M5 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
105
+ <path d="M12 4m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
106
+ <path d="M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
107
+ <path d="M5 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
108
+ <path d="M19 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path>
109
+ <path d="M8 22l4 -10l4 10"></path>
110
+ </svg>
111
+ ```
112
+
113
+ ## Filled icons
114
+
115
+ To use filled icons, you need to copy the SVG code from the Tabler Icons website and paste it into your HTML file.
116
+
117
+ ```html
118
+ <svg
119
+ xmlns="http://www.w3.org/2000/svg"
120
+ class="icon icon-tabler icon-tabler-heart-filled"
121
+ width="24"
122
+ height="24"
123
+ viewBox="0 0 24 24"
124
+ stroke-width="2"
125
+ stroke="currentColor"
126
+ fill="none"
127
+ stroke-linecap="round"
128
+ stroke-linejoin="round"
129
+ >
130
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
131
+ <path
132
+ d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"
133
+ stroke-width="0"
134
+ fill="currentColor"
135
+ ></path>
136
+ </svg>
137
+ ```
138
+
139
+ Look at the example below to see the filled icons.
140
+
141
+ ```html example centered separated
142
+ <svg
143
+ xmlns="http://www.w3.org/2000/svg"
144
+ class="icon icon-tabler icon-tabler-heart-filled"
145
+ width="24"
146
+ height="24"
147
+ viewBox="0 0 24 24"
148
+ stroke-width="2"
149
+ stroke="currentColor"
150
+ fill="none"
151
+ stroke-linecap="round"
152
+ stroke-linejoin="round"
153
+ >
154
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
155
+ <path
156
+ d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"
157
+ stroke-width="0"
158
+ fill="currentColor"
159
+ ></path>
160
+ </svg>
161
+ <svg
162
+ xmlns="http://www.w3.org/2000/svg"
163
+ class="icon icon-tabler icon-tabler-bell-ringing-filled"
164
+ width="24"
165
+ height="24"
166
+ viewBox="0 0 24 24"
167
+ stroke-width="2"
168
+ stroke="currentColor"
169
+ fill="none"
170
+ stroke-linecap="round"
171
+ stroke-linejoin="round"
172
+ >
173
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
174
+ <path
175
+ d="M17.451 2.344a1 1 0 0 1 1.41 -.099a12.05 12.05 0 0 1 3.048 4.064a1 1 0 1 1 -1.818 .836a10.05 10.05 0 0 0 -2.54 -3.39a1 1 0 0 1 -.1 -1.41z"
176
+ stroke-width="0"
177
+ fill="currentColor"
178
+ ></path>
179
+ <path
180
+ d="M5.136 2.245a1 1 0 0 1 1.312 1.51a10.05 10.05 0 0 0 -2.54 3.39a1 1 0 1 1 -1.817 -.835a12.05 12.05 0 0 1 3.045 -4.065z"
181
+ stroke-width="0"
182
+ fill="currentColor"
183
+ ></path>
184
+ <path
185
+ d="M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z"
186
+ stroke-width="0"
187
+ fill="currentColor"
188
+ ></path>
189
+ <path
190
+ d="M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z"
191
+ stroke-width="0"
192
+ fill="currentColor"
193
+ ></path>
194
+ </svg>
195
+ <svg
196
+ xmlns="http://www.w3.org/2000/svg"
197
+ class="icon icon-tabler icon-tabler-cherry-filled"
198
+ width="24"
199
+ height="24"
200
+ viewBox="0 0 24 24"
201
+ stroke-width="2"
202
+ stroke="currentColor"
203
+ fill="none"
204
+ stroke-linecap="round"
205
+ stroke-linejoin="round"
206
+ >
207
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
208
+ <path
209
+ d="M16.588 5.191l.058 .045l.078 .074l.072 .084l.013 .018a.998 .998 0 0 1 .182 .727l-.022 .111l-.03 .092c-.99 2.725 -.666 5.158 .679 7.706a4 4 0 1 1 -4.613 4.152l-.005 -.2l.005 -.2a4.002 4.002 0 0 1 2.5 -3.511c-.947 -2.03 -1.342 -4.065 -1.052 -6.207c-.166 .077 -.332 .15 -.499 .218l.094 -.064c-2.243 1.47 -3.552 3.004 -3.98 4.57a4.5 4.5 0 1 1 -7.064 3.906l-.004 -.212l.005 -.212a4.5 4.5 0 0 1 5.2 -4.233c.332 -1.073 .945 -2.096 1.83 -3.069c-1.794 -.096 -3.586 -.759 -5.355 -1.986l-.268 -.19l-.051 -.04l-.046 -.04l-.044 -.044l-.04 -.046l-.04 -.05l-.032 -.047l-.035 -.06l-.053 -.11l-.038 -.116l-.023 -.117l-.005 -.042l-.005 -.118l.01 -.118l.023 -.117l.038 -.115l.03 -.066l.023 -.045l.035 -.06l.032 -.046l.04 -.051l.04 -.046l.044 -.044l.046 -.04l.05 -.04c4.018 -2.922 8.16 -2.922 12.177 0z"
210
+ stroke-width="0"
211
+ fill="currentColor"
212
+ ></path>
213
+ </svg>
214
+ <svg
215
+ xmlns="http://www.w3.org/2000/svg"
216
+ class="icon icon-tabler icon-tabler-circle-key-filled"
217
+ width="24"
218
+ height="24"
219
+ viewBox="0 0 24 24"
220
+ stroke-width="2"
221
+ stroke="currentColor"
222
+ fill="none"
223
+ stroke-linecap="round"
224
+ stroke-linejoin="round"
225
+ >
226
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
227
+ <path
228
+ d="M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -20 0c0 -5.523 4.477 -10 10 -10zm2 5a3 3 0 0 0 -2.98 2.65l-.015 .174l-.005 .176l.005 .176c.019 .319 .087 .624 .197 .908l.09 .209l-3.5 3.5l-.082 .094a1 1 0 0 0 0 1.226l.083 .094l1.5 1.5l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l.083 -.094a1 1 0 0 0 0 -1.226l-.083 -.094l-.792 -.793l.585 -.585l.793 .792l.094 .083a1 1 0 0 0 1.403 -1.403l-.083 -.094l-.792 -.793l.792 -.792a3 3 0 1 0 1.293 -5.708zm0 2a1 1 0 1 1 0 2a1 1 0 0 1 0 -2z"
229
+ stroke-width="0"
230
+ fill="currentColor"
231
+ ></path>
232
+ </svg>
233
+ ```
234
+
235
+ ## Icon colors
236
+
237
+ To change the color of the icon, you need to add the `text-` class to the parent element of the icon. Full list of available colors can be found [here](/docs/ui/colors). Color classes can be used with any HTML element.
238
+
239
+ ```html
240
+ <span class="text-red">
241
+ <!-- SVG icon from http://tabler.io/icons/icon/heart -->
242
+ <svg>...</svg>
243
+ </span>
244
+ ```
245
+
246
+ Look at the example below to see how the color of the icon changes.
247
+
248
+ ```html example centered separated
249
+ <span class="text-red">
250
+ <svg
251
+ xmlns="http://www.w3.org/2000/svg"
252
+ class="icon icon-tabler icon-tabler-heart-filled"
253
+ width="24"
254
+ height="24"
255
+ viewBox="0 0 24 24"
256
+ stroke-width="2"
257
+ stroke="currentColor"
258
+ fill="none"
259
+ stroke-linecap="round"
260
+ stroke-linejoin="round"
261
+ >
262
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
263
+ <path
264
+ d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z"
265
+ stroke-width="0"
266
+ fill="currentColor"
267
+ ></path>
268
+ </svg>
269
+ </span>
270
+ <span class="text-yellow">
271
+ <svg
272
+ xmlns="http://www.w3.org/2000/svg"
273
+ class="icon icon-tabler icon-tabler-star-filled"
274
+ width="24"
275
+ height="24"
276
+ viewBox="0 0 24 24"
277
+ stroke-width="2"
278
+ stroke="currentColor"
279
+ fill="none"
280
+ stroke-linecap="round"
281
+ stroke-linejoin="round"
282
+ >
283
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
284
+ <path
285
+ d="M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z"
286
+ stroke-width="0"
287
+ fill="currentColor"
288
+ ></path>
289
+ </svg>
290
+ </span>
291
+ <span class="text-blue">
292
+ <svg
293
+ xmlns="http://www.w3.org/2000/svg"
294
+ class="icon icon-tabler icon-tabler-circle"
295
+ width="24"
296
+ height="24"
297
+ viewBox="0 0 24 24"
298
+ stroke-width="2"
299
+ stroke="currentColor"
300
+ fill="none"
301
+ stroke-linecap="round"
302
+ stroke-linejoin="round"
303
+ >
304
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
305
+ <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path>
306
+ </svg>
307
+ </span>
308
+ <span class="text-green">
309
+ <svg
310
+ xmlns="http://www.w3.org/2000/svg"
311
+ class="icon icon-tabler icon-tabler-square-rounded"
312
+ width="24"
313
+ height="24"
314
+ viewBox="0 0 24 24"
315
+ stroke-width="2"
316
+ stroke="currentColor"
317
+ fill="none"
318
+ stroke-linecap="round"
319
+ stroke-linejoin="round"
320
+ >
321
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
322
+ <path d="M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z"></path>
323
+ </svg>
324
+ </span>
325
+ ```
326
+
327
+ ## Icon animations
328
+
329
+ To add an animation to the icon, you need to add the `icon-pulse`, `icon-tada`, or `icon-rotate` class to the SVG element.
330
+
331
+ ```html
332
+ <!-- SVG icon from http://tabler.io/icons/icon/heart -->
333
+ <svg class="icon-pulse" ...>...</svg>
334
+ <!-- SVG icon from http://tabler.io/icons/icon/bell -->
335
+ <svg class="icon-tada" ...>...</svg>
336
+ <!-- SVG icon from http://tabler.io/icons/icon/rotate-clockwise -->
337
+ <svg class="icon-rotate" ...>...</svg>
338
+ ```
339
+
340
+ Look at the example below to see the animated icons.
341
+
342
+ ```html example centered separated
343
+ <svg
344
+ xmlns="http://www.w3.org/2000/svg"
345
+ class="icon icon-pulse"
346
+ width="24"
347
+ height="24"
348
+ viewBox="0 0 24 24"
349
+ stroke-width="2"
350
+ stroke="currentColor"
351
+ fill="none"
352
+ stroke-linecap="round"
353
+ stroke-linejoin="round"
354
+ >
355
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
356
+ <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
357
+ </svg>
358
+ <svg
359
+ xmlns="http://www.w3.org/2000/svg"
360
+ class="icon icon-tada"
361
+ width="24"
362
+ height="24"
363
+ viewBox="0 0 24 24"
364
+ stroke-width="2"
365
+ stroke="currentColor"
366
+ fill="none"
367
+ stroke-linecap="round"
368
+ stroke-linejoin="round"
369
+ >
370
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
371
+ <path
372
+ d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"
373
+ />
374
+ <path d="M9 17v1a3 3 0 0 0 6 0v-1" />
375
+ </svg>
376
+ <svg
377
+ xmlns="http://www.w3.org/2000/svg"
378
+ class="icon icon-rotate"
379
+ width="24"
380
+ height="24"
381
+ viewBox="0 0 24 24"
382
+ stroke-width="2"
383
+ stroke="currentColor"
384
+ fill="none"
385
+ stroke-linecap="round"
386
+ stroke-linejoin="round"
387
+ >
388
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
389
+ <path d="M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5" />
390
+ </svg>
391
+ ```
392
+
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Components
3
+ order: 4
4
+ description: Various components to enhance UI.
5
+ summary: Tabler UI includes a variety of components to help you build web applications that are both functional and visually appealing. From buttons and cards to modals and navigation, these components provide a wide range of features to enhance your site.
6
+ ---