@tabler/core 1.1.1 → 1.2.0

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 (273) hide show
  1. package/LICENSE +21 -0
  2. package/dist/css/tabler-flags.css +2 -2
  3. package/dist/css/tabler-flags.css.map +1 -1
  4. package/dist/css/tabler-flags.min.css +2 -2
  5. package/dist/css/tabler-flags.min.css.map +1 -1
  6. package/dist/css/tabler-flags.rtl.css +2 -2
  7. package/dist/css/tabler-flags.rtl.css.map +1 -1
  8. package/dist/css/tabler-flags.rtl.min.css +2 -2
  9. package/dist/css/tabler-flags.rtl.min.css.map +1 -1
  10. package/dist/css/tabler-marketing.css +6 -6
  11. package/dist/css/tabler-marketing.css.map +1 -1
  12. package/dist/css/tabler-marketing.min.css +2 -2
  13. package/dist/css/tabler-marketing.min.css.map +1 -1
  14. package/dist/css/tabler-marketing.rtl.css +6 -6
  15. package/dist/css/tabler-marketing.rtl.css.map +1 -1
  16. package/dist/css/tabler-marketing.rtl.min.css +2 -2
  17. package/dist/css/tabler-marketing.rtl.min.css.map +1 -1
  18. package/dist/css/tabler-payments.css +1 -1
  19. package/dist/css/tabler-payments.min.css +1 -1
  20. package/dist/css/tabler-payments.rtl.css +1 -1
  21. package/dist/css/tabler-payments.rtl.min.css +1 -1
  22. package/dist/css/tabler-props.css +448 -0
  23. package/dist/css/tabler-props.css.map +1 -0
  24. package/dist/css/tabler-props.min.css +8 -0
  25. package/dist/css/tabler-props.min.css.map +1 -0
  26. package/dist/css/tabler-props.rtl.css +447 -0
  27. package/dist/css/tabler-props.rtl.css.map +1 -0
  28. package/dist/css/tabler-props.rtl.min.css +8 -0
  29. package/dist/css/tabler-props.rtl.min.css.map +1 -0
  30. package/dist/css/tabler-socials.css +1 -1
  31. package/dist/css/tabler-socials.min.css +1 -1
  32. package/dist/css/tabler-socials.rtl.css +1 -1
  33. package/dist/css/tabler-socials.rtl.min.css +1 -1
  34. package/dist/css/tabler-themes.css +213 -0
  35. package/dist/css/tabler-themes.css.map +1 -0
  36. package/dist/css/tabler-themes.min.css +8 -0
  37. package/dist/css/tabler-themes.min.css.map +1 -0
  38. package/dist/css/tabler-themes.rtl.css +212 -0
  39. package/dist/css/tabler-themes.rtl.css.map +1 -0
  40. package/dist/css/tabler-themes.rtl.min.css +8 -0
  41. package/dist/css/tabler-themes.rtl.min.css.map +1 -0
  42. package/dist/css/tabler-vendors.css +31 -16
  43. package/dist/css/tabler-vendors.css.map +1 -1
  44. package/dist/css/tabler-vendors.min.css +2 -2
  45. package/dist/css/tabler-vendors.min.css.map +1 -1
  46. package/dist/css/tabler-vendors.rtl.css +31 -16
  47. package/dist/css/tabler-vendors.rtl.css.map +1 -1
  48. package/dist/css/tabler-vendors.rtl.min.css +2 -2
  49. package/dist/css/tabler-vendors.rtl.min.css.map +1 -1
  50. package/dist/css/tabler.css +7662 -8392
  51. package/dist/css/tabler.css.map +1 -1
  52. package/dist/css/tabler.min.css +2 -2
  53. package/dist/css/tabler.min.css.map +1 -1
  54. package/dist/css/tabler.rtl.css +7751 -8481
  55. package/dist/css/tabler.rtl.css.map +1 -1
  56. package/dist/css/tabler.rtl.min.css +2 -2
  57. package/dist/css/tabler.rtl.min.css.map +1 -1
  58. package/dist/img/flags/kr.svg +1 -1
  59. package/dist/js/tabler-theme.esm.js +38 -0
  60. package/dist/js/tabler-theme.esm.js.map +1 -0
  61. package/dist/js/tabler-theme.esm.min.js +8 -0
  62. package/dist/js/tabler-theme.esm.min.js.map +1 -0
  63. package/dist/js/tabler-theme.js +45 -0
  64. package/dist/js/tabler-theme.js.map +1 -0
  65. package/dist/js/tabler-theme.min.js +8 -0
  66. package/dist/js/tabler-theme.min.js.map +1 -0
  67. package/dist/js/tabler.esm.js +28 -21
  68. package/dist/js/tabler.esm.js.map +1 -1
  69. package/dist/js/tabler.esm.min.js +5 -5
  70. package/dist/js/tabler.esm.min.js.map +1 -1
  71. package/dist/js/tabler.js +36 -24
  72. package/dist/js/tabler.js.map +1 -1
  73. package/dist/js/tabler.min.js +5 -5
  74. package/dist/js/tabler.min.js.map +1 -1
  75. package/js/src/autosize.js +1 -4
  76. package/js/src/input-mask.js +1 -3
  77. package/js/tabler-theme.js +35 -0
  78. package/js/{tabler.esm.js → tabler.js} +16 -0
  79. package/package.json +10 -8
  80. package/scss/_bootstrap-components.scss +0 -5
  81. package/scss/_core.scss +4 -0
  82. package/scss/_props.scss +91 -0
  83. package/scss/_utilities.scss +30 -1
  84. package/scss/_variables-dark.scss +1 -1
  85. package/scss/_variables.scss +79 -60
  86. package/scss/helpers/_index.scss +143 -0
  87. package/scss/layout/_core.scss +1 -0
  88. package/scss/layout/_dark.scss +33 -38
  89. package/scss/layout/_navbar.scss +2 -1
  90. package/scss/layout/_page.scss +1 -0
  91. package/scss/layout/_root.scss +26 -34
  92. package/scss/marketing/_core.scss +1 -1
  93. package/scss/marketing/_pricing.scss +1 -1
  94. package/scss/mixins/_mixins.scss +6 -6
  95. package/scss/tabler-props.scss +1 -0
  96. package/scss/tabler-themes.scss +121 -0
  97. package/scss/tabler-vendors.scss +3 -1
  98. package/scss/tabler.scss +0 -1
  99. package/scss/ui/_accordion.scss +31 -26
  100. package/scss/ui/_alerts.scss +19 -8
  101. package/scss/ui/_avatars.scss +35 -9
  102. package/scss/ui/_badges.scss +1 -1
  103. package/scss/ui/_buttons.scss +15 -17
  104. package/scss/ui/_close.scss +55 -2
  105. package/scss/ui/_dropdowns.scss +1 -0
  106. package/scss/ui/_forms.scss +12 -2
  107. package/scss/ui/_markdown.scss +10 -1
  108. package/scss/ui/_nav.scss +11 -1
  109. package/scss/ui/_offcanvas.scss +1 -1
  110. package/scss/ui/_pagination.scss +2 -0
  111. package/scss/ui/_signature.scss +4 -2
  112. package/scss/ui/_steps.scss +4 -0
  113. package/scss/ui/_tables.scss +16 -0
  114. package/scss/ui/_tags.scss +1 -1
  115. package/scss/ui/_type.scss +69 -7
  116. package/scss/ui/forms/_form-colorinput.scss +1 -1
  117. package/scss/ui/forms/_form-imagecheck.scss +6 -5
  118. package/scss/ui/forms/_form-selectgroup.scss +1 -1
  119. package/scss/utils/_colors.scss +58 -11
  120. package/scss/utils/_scroll.scss +0 -2
  121. package/scss/vendor/_coloris.scss +6 -1
  122. package/scss/vendor/_fslightbox.scss +1 -1
  123. package/scss/vendor/_jsvectormap.scss +2 -3
  124. package/scss/vendor/_litepicker.scss +1 -0
  125. package/scss/vendor/_nouislider.scss +0 -2
  126. package/scss/vendor/_tinymce.scss +3 -3
  127. package/scss/vendor/_tom-select.scss +7 -4
  128. package/scss/vendor/_turbo.scss +3 -0
  129. package/scss/vendor/_wysiwyg.scss +34 -0
  130. package/docs/emails/index.mdx +0 -14
  131. package/docs/emails/introduction/compiled-html.mdx +0 -29
  132. package/docs/emails/introduction/contents.mdx +0 -63
  133. package/docs/emails/introduction/index.mdx +0 -9
  134. package/docs/emails/introduction/source-html.mdx +0 -26
  135. package/docs/icons/index.mdx +0 -13
  136. package/docs/icons/libraries/index.mdx +0 -5
  137. package/docs/icons/libraries/preact.mdx +0 -42
  138. package/docs/icons/libraries/react.mdx +0 -42
  139. package/docs/icons/libraries/solidjs.mdx +0 -42
  140. package/docs/icons/libraries/svelte.mdx +0 -43
  141. package/docs/icons/libraries/vue.mdx +0 -50
  142. package/docs/icons/libraries/webfont.mdx +0 -60
  143. package/docs/icons/plugins/figma.mdx +0 -15
  144. package/docs/icons/plugins/index.mdx +0 -4
  145. package/docs/icons/static-files/eps.mdx +0 -15
  146. package/docs/icons/static-files/index.mdx +0 -5
  147. package/docs/icons/static-files/pdf.mdx +0 -15
  148. package/docs/icons/static-files/png.mdx +0 -31
  149. package/docs/icons/static-files/svg.mdx +0 -85
  150. package/docs/illustrations/index.mdx +0 -8
  151. package/docs/illustrations/introduction/contents.mdx +0 -77
  152. package/docs/illustrations/introduction/customization.mdx +0 -1198
  153. package/docs/illustrations/introduction/index.mdx +0 -5
  154. package/docs/illustrations/introduction/license.mdx +0 -90
  155. package/docs/img/browsers/brave.svg +0 -1
  156. package/docs/img/browsers/chrome.svg +0 -1
  157. package/docs/img/browsers/edge.svg +0 -1
  158. package/docs/img/browsers/electron.svg +0 -1
  159. package/docs/img/browsers/firefox.svg +0 -1
  160. package/docs/img/browsers/internet-explorer.svg +0 -1
  161. package/docs/img/browsers/opera.svg +0 -1
  162. package/docs/img/browsers/safari.svg +0 -1
  163. package/docs/img/browsers/vivaldi.svg +0 -1
  164. package/docs/img/cover-illustrations-dark.png +0 -0
  165. package/docs/img/cover-illustrations.png +0 -0
  166. package/docs/img/cover-tabler-dark.png +0 -0
  167. package/docs/img/cover-tabler.png +0 -0
  168. package/docs/img/icons/figma-plugin.png +0 -0
  169. package/docs/img/icons/package-angular-dark.png +0 -0
  170. package/docs/img/icons/package-angular.png +0 -0
  171. package/docs/img/icons/package-eps-dark.png +0 -0
  172. package/docs/img/icons/package-eps.png +0 -0
  173. package/docs/img/icons/package-js-dark.png +0 -0
  174. package/docs/img/icons/package-js.png +0 -0
  175. package/docs/img/icons/package-pdf-dark.png +0 -0
  176. package/docs/img/icons/package-pdf.png +0 -0
  177. package/docs/img/icons/package-png-dark.png +0 -0
  178. package/docs/img/icons/package-png.png +0 -0
  179. package/docs/img/icons/package-preact-dark.png +0 -0
  180. package/docs/img/icons/package-preact.png +0 -0
  181. package/docs/img/icons/package-react-dark.png +0 -0
  182. package/docs/img/icons/package-react-native-dark.png +0 -0
  183. package/docs/img/icons/package-react-native.png +0 -0
  184. package/docs/img/icons/package-react.png +0 -0
  185. package/docs/img/icons/package-solidjs-dark.png +0 -0
  186. package/docs/img/icons/package-solidjs.png +0 -0
  187. package/docs/img/icons/package-sprite-dark.png +0 -0
  188. package/docs/img/icons/package-sprite.png +0 -0
  189. package/docs/img/icons/package-svelte-dark.png +0 -0
  190. package/docs/img/icons/package-svelte.png +0 -0
  191. package/docs/img/icons/package-svg-dark.png +0 -0
  192. package/docs/img/icons/package-svg.png +0 -0
  193. package/docs/img/icons/package-vue-dark.png +0 -0
  194. package/docs/img/icons/package-vue.png +0 -0
  195. package/docs/img/icons/package-webfont-dark.png +0 -0
  196. package/docs/img/icons/package-webfont.png +0 -0
  197. package/docs/index.mdx +0 -16
  198. package/docs/ui/base/colors.mdx +0 -83
  199. package/docs/ui/base/index.mdx +0 -6
  200. package/docs/ui/base/typography.mdx +0 -311
  201. package/docs/ui/components/alerts.mdx +0 -406
  202. package/docs/ui/components/autosize.mdx +0 -25
  203. package/docs/ui/components/avatars.mdx +0 -227
  204. package/docs/ui/components/badges.mdx +0 -112
  205. package/docs/ui/components/breadcrumb.mdx +0 -199
  206. package/docs/ui/components/buttons.mdx +0 -1213
  207. package/docs/ui/components/cards.mdx +0 -417
  208. package/docs/ui/components/carousel.mdx +0 -459
  209. package/docs/ui/components/charts.mdx +0 -697
  210. package/docs/ui/components/countup.mdx +0 -165
  211. package/docs/ui/components/datagrid.mdx +0 -120
  212. package/docs/ui/components/divider.mdx +0 -68
  213. package/docs/ui/components/dropdowns.mdx +0 -302
  214. package/docs/ui/components/dropzone.mdx +0 -88
  215. package/docs/ui/components/empty.mdx +0 -149
  216. package/docs/ui/components/icons.mdx +0 -392
  217. package/docs/ui/components/index.mdx +0 -6
  218. package/docs/ui/components/inline-player.mdx +0 -58
  219. package/docs/ui/components/modals.mdx +0 -297
  220. package/docs/ui/components/offcanvas.mdx +0 -70
  221. package/docs/ui/components/placeholder.mdx +0 -273
  222. package/docs/ui/components/popover.mdx +0 -142
  223. package/docs/ui/components/progress.mdx +0 -241
  224. package/docs/ui/components/range-slider.mdx +0 -32
  225. package/docs/ui/components/ribbons.mdx +0 -207
  226. package/docs/ui/components/segmented-control.mdx +0 -401
  227. package/docs/ui/components/spinners.mdx +0 -135
  228. package/docs/ui/components/statuses.mdx +0 -322
  229. package/docs/ui/components/steps.mdx +0 -174
  230. package/docs/ui/components/switch-icon.mdx +0 -386
  231. package/docs/ui/components/tables.mdx +0 -397
  232. package/docs/ui/components/tabs.mdx +0 -396
  233. package/docs/ui/components/timelines.mdx +0 -697
  234. package/docs/ui/components/tinymce.mdx +0 -46
  235. package/docs/ui/components/toasts.mdx +0 -126
  236. package/docs/ui/components/tooltips.mdx +0 -65
  237. package/docs/ui/components/tracking.mdx +0 -548
  238. package/docs/ui/components/vector-maps.mdx +0 -166
  239. package/docs/ui/forms/form-color-check.mdx +0 -220
  240. package/docs/ui/forms/form-elements.mdx +0 -632
  241. package/docs/ui/forms/form-fieldset.mdx +0 -45
  242. package/docs/ui/forms/form-helpers.mdx +0 -91
  243. package/docs/ui/forms/form-image-check.mdx +0 -213
  244. package/docs/ui/forms/form-input-mask.mdx +0 -61
  245. package/docs/ui/forms/form-selectboxes.mdx +0 -398
  246. package/docs/ui/forms/form-validation.mdx +0 -62
  247. package/docs/ui/forms/index.mdx +0 -6
  248. package/docs/ui/getting-started/browser-support.mdx +0 -28
  249. package/docs/ui/getting-started/customize.mdx +0 -28
  250. package/docs/ui/getting-started/download.mdx +0 -44
  251. package/docs/ui/getting-started/faq.mdx +0 -30
  252. package/docs/ui/getting-started/how-to-contribute.mdx +0 -84
  253. package/docs/ui/getting-started/index.mdx +0 -16
  254. package/docs/ui/getting-started/installation.mdx +0 -67
  255. package/docs/ui/getting-started/license.mdx +0 -30
  256. package/docs/ui/index.mdx +0 -8
  257. package/docs/ui/layout/index.mdx +0 -6
  258. package/docs/ui/layout/navbars.mdx +0 -164
  259. package/docs/ui/layout/navs-tabls.mdx +0 -201
  260. package/docs/ui/layout/page-headers.mdx +0 -365
  261. package/docs/ui/layout/page-layouts.mdx +0 -213
  262. package/docs/ui/plugins/flags.mdx +0 -316
  263. package/docs/ui/plugins/index.mdx +0 -6
  264. package/docs/ui/plugins/payments.mdx +0 -152
  265. package/docs/ui/plugins/social-icons.mdx +0 -135
  266. package/docs/ui/utilities/borders.mdx +0 -260
  267. package/docs/ui/utilities/cursors.mdx +0 -63
  268. package/docs/ui/utilities/index.mdx +0 -5
  269. package/docs/ui/utilities/interactions.mdx +0 -26
  270. package/docs/ui/utilities/margins.mdx +0 -234
  271. package/docs/ui/utilities/vertical-align.mdx +0 -66
  272. package/docs/ui/utilities/visually-hidden.mdx +0 -12
  273. package/js/tabler.umd.js +0 -15
@@ -1,1213 +0,0 @@
1
- ---
2
- title: Buttons
3
- summary: Use button styles that best suit your designs and encourage users to take the desired actions. You can customize the button's properties to improve the user experience of your website or system, changing the size, shape, color and many more.
4
- bootstrapLink: components/buttons/
5
- description: Customizable buttons for user actions.
6
- ---
7
-
8
- ## Button tag
9
-
10
- As one of the most common elements of UI design, buttons have a very important function of engaging users within your website or app and guiding them in their actions. Use the `.btn` classes with the `<button>` element and add additional styling that will make your buttons serve their purpose and draw users' attention.
11
-
12
- ```html example centered separated height="7rem"
13
- <a href="#" class="btn" role="button">Link</a>
14
- <button class="btn">Button</button>
15
- <input type="button" class="btn" value="Input" />
16
- <input type="submit" class="btn" value="Submit" />
17
- <input type="reset" class="btn" value="Reset" />
18
- ```
19
-
20
- ## Default button
21
-
22
- The standard button creates a white background and subtle hover animation. It's meant to look and behave as an interactive element of your page.
23
-
24
- ```html example centered separated height="7rem"
25
- <a href="#" class="btn" role="button">Link</a>
26
- ```
27
-
28
- ## Button variations
29
-
30
- Use the button classes that correspond to the function of your button. The big range of available colors will help you show your button's purpose and make it easy to spot.
31
-
32
- ```html example vertical centered separated scrollable height="15rem"
33
- <a href="#" class="btn btn-primary">Primary</a>
34
- <a href="#" class="btn btn-secondary">Secondary</a>
35
- <a href="#" class="btn btn-success">Success</a>
36
- <a href="#" class="btn btn-warning">Warning</a>
37
- <a href="#" class="btn btn-danger">Danger</a>
38
- <a href="#" class="btn btn-info">Info</a>
39
- <a href="#" class="btn btn-dark">Dark</a>
40
- <a href="#" class="btn btn-light">Light</a>
41
- ```
42
-
43
- ## Disabled buttons
44
-
45
- Make buttons look inactive to show that an action is possible once the user meets certain criteria, such as completing the required fields to submit a form.
46
-
47
- ```html example vertical centered separated scrollable height="15rem"
48
- <a href="#" class="btn btn-primary disabled">Primary</a>
49
- <a href="#" class="btn btn-secondary disabled">Secondary</a>
50
- <a href="#" class="btn btn-success disabled">Success</a>
51
- <a href="#" class="btn btn-warning disabled">Warning</a>
52
- <a href="#" class="btn btn-danger disabled">Danger</a>
53
- <a href="#" class="btn btn-info disabled">Info</a>
54
- <a href="#" class="btn btn-dark disabled">Dark</a>
55
- <a href="#" class="btn btn-light disabled">Light</a>
56
- ```
57
-
58
- ## Color variations
59
-
60
- Choose the right color for your button to make it go well with your design and draw users' attention. Button colors can have a big influence on users' decisions, which is why it's important to choose them based on the intended purpose.
61
-
62
- ```html example vertical centered separated scrollable height="15rem"
63
- <a href="#" class="btn btn-blue">Blue</a>
64
- <a href="#" class="btn btn-azure">Azure</a>
65
- <a href="#" class="btn btn-indigo">Indigo</a>
66
- <a href="#" class="btn btn-purple">Purple</a>
67
- <a href="#" class="btn btn-pink">Pink</a>
68
- <a href="#" class="btn btn-red">Red</a>
69
- <a href="#" class="btn btn-orange">Orange</a>
70
- <a href="#" class="btn btn-yellow">Yellow</a>
71
- <a href="#" class="btn btn-lime">Lime</a>
72
- <a href="#" class="btn btn-green">Green</a>
73
- <a href="#" class="btn btn-teal">Teal</a>
74
- <a href="#" class="btn btn-cyan">Cyan</a>
75
- ```
76
-
77
- ## Ghost buttons
78
-
79
- Use the `.btn-ghost-*` class to make your button look simple yet aesthetically appealing. Ghost buttons help focus users' attention on the website's primary design, encouraging them to take action at the same time.
80
-
81
- ```html example vertical centered separated scrollable height="15rem"
82
- <a href="#" class="btn btn-ghost-primary">Primary</a>
83
- <a href="#" class="btn btn-ghost-secondary">Secondary</a>
84
- <a href="#" class="btn btn-ghost-success">Success</a>
85
- <a href="#" class="btn btn-ghost-warning">Warning</a>
86
- <a href="#" class="btn btn-ghost-danger">Danger</a>
87
- <a href="#" class="btn btn-ghost-info">Info</a>
88
- <a href="#" class="btn btn-ghost-dark">Dark</a>
89
- <div class="p-2 bg-dark">
90
- <a href="#" class="btn btn-ghost-light">Light</a>
91
- </div>
92
- ```
93
-
94
- ## Square buttons
95
-
96
- Use the `.btn-square` class to remove the border radius, if you want the corners of your button to be square rather than rounded.
97
-
98
- ```html example centered separated height="7rem"
99
- <a href="#" class="btn btn-square">Square button</a>
100
- ```
101
-
102
- ## Pill buttons
103
-
104
- Add the `.btn-pill` class to your button to make it rounded and give it a modern and attractive look.
105
-
106
- ```html example centered separated height="7rem"
107
- <a href="#" class="btn btn-pill">Pill button</a>
108
- ```
109
-
110
- ## Outline buttons
111
-
112
- Replace the default modifier class with the `.btn-outline-*` class, if you want to remove the color and the background of your button and give it a more subtle look. Outline buttons are perfect to use as secondary buttons, as they don't distract users from the main action.
113
-
114
- ```html example vertical centered separated scrollable height="15rem"
115
- <a href="#" class="btn btn-outline-primary">Primary</a>
116
- <a href="#" class="btn btn-outline-secondary">Secondary</a>
117
- <a href="#" class="btn btn-outline-success">Success</a>
118
- <a href="#" class="btn btn-outline-warning">Warning</a>
119
- <a href="#" class="btn btn-outline-danger">Danger</a>
120
- <a href="#" class="btn btn-outline-info">Info</a>
121
- <a href="#" class="btn btn-outline-dark">Dark</a>
122
- <a href="#" class="btn btn-outline-light">Light</a>
123
- ```
124
-
125
- ## Button size
126
-
127
- Add `.btn-lg` or `.btn-sm` to change the size of your button and differentiate those which should have primary focus from those of secondary importance. Adapt the button size to your design and encourage users to take actions.
128
-
129
- ```html example centered separated height="8rem"
130
- <button type="button" class="btn btn-primary btn-lg">Large button</button>
131
- <button type="button" class="btn btn-lg">Large button</button>
132
- ```
133
-
134
- ```html example centered separated height="7rem"
135
- <button type="button" class="btn btn-primary btn-sm">Small button</button>
136
- <button type="button" class="btn btn-sm">Small button</button>
137
- ```
138
-
139
- ## Buttons with icons
140
-
141
- Label your button with text and add an icon to communicate the action and make it easy to identify for users. Icons are easily recognized and improve the aesthetics of your button design, giving it a modern and attractive look.
142
-
143
- Icons can be found [**here**](/docs/components/icons)
144
-
145
- ```html example centered separated height="7rem"
146
- <button type="button" class="btn">
147
- <!-- SVG icon from http://tabler.io/icons/icon/upload -->
148
- <svg
149
- xmlns="http://www.w3.org/2000/svg"
150
- class="icon"
151
- width="24"
152
- height="24"
153
- viewBox="0 0 24 24"
154
- stroke-width="2"
155
- stroke="currentColor"
156
- fill="none"
157
- stroke-linecap="round"
158
- stroke-linejoin="round"
159
- >
160
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
161
- <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" />
162
- <polyline points="7 9 12 4 17 9" />
163
- <line x1="12" y1="4" x2="12" y2="16" />
164
- </svg>
165
- Upload
166
- </button>
167
- <button type="button" class="btn btn-warning">
168
- <!-- SVG icon from http://tabler.io/icons/icon/heart -->
169
- <svg
170
- xmlns="http://www.w3.org/2000/svg"
171
- class="icon"
172
- width="24"
173
- height="24"
174
- viewBox="0 0 24 24"
175
- stroke-width="2"
176
- stroke="currentColor"
177
- fill="none"
178
- stroke-linecap="round"
179
- stroke-linejoin="round"
180
- >
181
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
182
- <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" />
183
- </svg>
184
- I like
185
- </button>
186
- <button type="button" class="btn btn-success">
187
- <!-- SVG icon from http://tabler.io/icons/icon/check -->
188
- <svg
189
- xmlns="http://www.w3.org/2000/svg"
190
- class="icon"
191
- width="24"
192
- height="24"
193
- viewBox="0 0 24 24"
194
- stroke-width="2"
195
- stroke="currentColor"
196
- fill="none"
197
- stroke-linecap="round"
198
- stroke-linejoin="round"
199
- >
200
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
201
- <path d="M5 12l5 5l10 -10" />
202
- </svg>
203
- I agree
204
- </button>
205
- <button type="button" class="btn btn-primary">
206
- <!-- SVG icon from http://tabler.io/icons/icon/plus -->
207
- <svg
208
- xmlns="http://www.w3.org/2000/svg"
209
- class="icon"
210
- width="24"
211
- height="24"
212
- viewBox="0 0 24 24"
213
- stroke-width="2"
214
- stroke="currentColor"
215
- fill="none"
216
- stroke-linecap="round"
217
- stroke-linejoin="round"
218
- >
219
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
220
- <line x1="12" y1="5" x2="12" y2="19" />
221
- <line x1="5" y1="12" x2="19" y2="12" />
222
- </svg>
223
- More
224
- </button>
225
- <button type="button" class="btn btn-danger">
226
- <!-- SVG icon from http://tabler.io/icons/icon/link -->
227
- <svg
228
- xmlns="http://www.w3.org/2000/svg"
229
- width="24"
230
- height="24"
231
- viewBox="0 0 24 24"
232
- fill="none"
233
- stroke="currentColor"
234
- stroke-width="2"
235
- stroke-linecap="round"
236
- stroke-linejoin="round"
237
- class="icon icon-tabler icons-tabler-outline icon-tabler-link"
238
- >
239
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
240
- <path d="M9 15l6 -6" />
241
- <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
242
- <path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
243
- </svg>
244
- Link
245
- </button>
246
- <button type="button" class="btn btn-info">
247
- <!-- SVG icon from http://tabler.io/icons/icon/message -->
248
- <svg
249
- xmlns="http://www.w3.org/2000/svg"
250
- width="24"
251
- height="24"
252
- viewBox="0 0 24 24"
253
- fill="none"
254
- stroke="currentColor"
255
- stroke-width="2"
256
- stroke-linecap="round"
257
- stroke-linejoin="round"
258
- class="icon icon-tabler icons-tabler-outline icon-tabler-message"
259
- >
260
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
261
- <path d="M8 9h8" />
262
- <path d="M8 13h6" />
263
- <path
264
- d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"
265
- />
266
- </svg>
267
- Comment
268
- </button>
269
- ```
270
-
271
- ## Social buttons
272
-
273
- You can use the icons of popular social networking sites, which users are familiar with. Thanks to buttons with social media icons users can share content or follow a website with just one click, without leaving the website.
274
-
275
- ```html example vertical centered separated scrollable height="15rem"
276
- <a href="#" class="btn btn-facebook">
277
- <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
278
- <svg
279
- xmlns="http://www.w3.org/2000/svg"
280
- class="icon"
281
- width="24"
282
- height="24"
283
- viewBox="0 0 24 24"
284
- stroke-width="2"
285
- stroke="currentColor"
286
- fill="none"
287
- stroke-linecap="round"
288
- stroke-linejoin="round"
289
- >
290
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
291
- <path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" />
292
- </svg>
293
- Facebook
294
- </a>
295
- <a href="#" class="btn btn-twitter">
296
- <!-- SVG icon from http://tabler.io/icons/icon/brand-twitter -->
297
- <svg
298
- xmlns="http://www.w3.org/2000/svg"
299
- class="icon"
300
- width="24"
301
- height="24"
302
- viewBox="0 0 24 24"
303
- stroke-width="2"
304
- stroke="currentColor"
305
- fill="none"
306
- stroke-linecap="round"
307
- stroke-linejoin="round"
308
- >
309
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
310
- <path
311
- d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"
312
- />
313
- </svg>
314
- Twitter
315
- </a>
316
- <a href="#" class="btn btn-google">
317
- <!-- SVG icon from http://tabler.io/icons/icon/brand-google -->
318
- <svg
319
- xmlns="http://www.w3.org/2000/svg"
320
- class="icon"
321
- width="24"
322
- height="24"
323
- viewBox="0 0 24 24"
324
- stroke-width="2"
325
- stroke="currentColor"
326
- fill="none"
327
- stroke-linecap="round"
328
- stroke-linejoin="round"
329
- >
330
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
331
- <path d="M17.788 5.108a9 9 0 1 0 3.212 6.892h-8" />
332
- </svg>
333
- Google
334
- </a>
335
- <a href="#" class="btn btn-youtube">
336
- <!-- SVG icon from http://tabler.io/icons/icon/brand-youtube -->
337
- <svg
338
- xmlns="http://www.w3.org/2000/svg"
339
- class="icon"
340
- width="24"
341
- height="24"
342
- viewBox="0 0 24 24"
343
- stroke-width="2"
344
- stroke="currentColor"
345
- fill="none"
346
- stroke-linecap="round"
347
- stroke-linejoin="round"
348
- >
349
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
350
- <rect x="3" y="5" width="18" height="14" rx="4" />
351
- <path d="M10 9l5 3l-5 3z" />
352
- </svg>
353
- Youtube
354
- </a>
355
- <a href="#" class="btn btn-vimeo">
356
- <!-- SVG icon from http://tabler.io/icons/icon/brand-vimeo -->
357
- <svg
358
- xmlns="http://www.w3.org/2000/svg"
359
- class="icon"
360
- width="24"
361
- height="24"
362
- viewBox="0 0 24 24"
363
- stroke-width="2"
364
- stroke="currentColor"
365
- fill="none"
366
- stroke-linecap="round"
367
- stroke-linejoin="round"
368
- >
369
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
370
- <path
371
- d="M3 8.5l1 1s1.5 -1.102 2 -.5c.509 .609 1.863 7.65 2.5 9c.556 1.184 1.978 2.89 4 1.5c2 -1.5 7.5 -5.5 8.5 -11.5c.444 -2.661 -1 -4 -2.5 -4c-2 0 -4.047 1.202 -4.5 4c2.05 -1.254 2.551 1.003 1.5 3c-1.052 2.005 -2 3 -2.5 3c-.49 0 -.924 -1.165 -1.5 -3.5c-.59 -2.42 -.5 -6.5 -3 -6.5s-5.5 4.5 -5.5 4.5z"
372
- />
373
- </svg>
374
- Vimeo
375
- </a>
376
- <a href="#" class="btn btn-dribbble">
377
- <!-- SVG icon from http://tabler.io/icons/icon/brand-dribbble -->
378
- <svg
379
- xmlns="http://www.w3.org/2000/svg"
380
- class="icon"
381
- width="24"
382
- height="24"
383
- viewBox="0 0 24 24"
384
- stroke-width="2"
385
- stroke="currentColor"
386
- fill="none"
387
- stroke-linecap="round"
388
- stroke-linejoin="round"
389
- >
390
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
391
- <circle cx="12" cy="12" r="9" />
392
- <path d="M9 3.6c5 6 7 10.5 7.5 16.2" />
393
- <path d="M6.4 19c3.5 -3.5 6 -6.5 14.5 -6.4" />
394
- <path d="M3.1 10.75c5 0 9.814 -.38 15.314 -5" />
395
- </svg>
396
- Dribbble
397
- </a>
398
- <a href="#" class="btn btn-github">
399
- <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
400
- <svg
401
- xmlns="http://www.w3.org/2000/svg"
402
- class="icon"
403
- width="24"
404
- height="24"
405
- viewBox="0 0 24 24"
406
- stroke-width="2"
407
- stroke="currentColor"
408
- fill="none"
409
- stroke-linecap="round"
410
- stroke-linejoin="round"
411
- >
412
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
413
- <path
414
- d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
415
- />
416
- </svg>
417
- Github
418
- </a>
419
- <a href="#" class="btn btn-instagram">
420
- <!-- SVG icon from http://tabler.io/icons/icon/brand-instagram -->
421
- <svg
422
- xmlns="http://www.w3.org/2000/svg"
423
- class="icon"
424
- width="24"
425
- height="24"
426
- viewBox="0 0 24 24"
427
- stroke-width="2"
428
- stroke="currentColor"
429
- fill="none"
430
- stroke-linecap="round"
431
- stroke-linejoin="round"
432
- >
433
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
434
- <rect x="4" y="4" width="16" height="16" rx="4" />
435
- <circle cx="12" cy="12" r="3" />
436
- <line x1="16.5" y1="7.5" x2="16.5" y2="7.501" />
437
- </svg>
438
- Instagram
439
- </a>
440
- <a href="#" class="btn btn-pinterest">
441
- <!-- SVG icon from http://tabler.io/icons/icon/brand-pinterest -->
442
- <svg
443
- xmlns="http://www.w3.org/2000/svg"
444
- class="icon"
445
- width="24"
446
- height="24"
447
- viewBox="0 0 24 24"
448
- stroke-width="2"
449
- stroke="currentColor"
450
- fill="none"
451
- stroke-linecap="round"
452
- stroke-linejoin="round"
453
- >
454
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
455
- <line x1="8" y1="20" x2="12" y2="11" />
456
- <path d="M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7" />
457
- <circle cx="12" cy="12" r="9" />
458
- </svg>
459
- Pinterest
460
- </a>
461
- <a href="#" class="btn btn-vk">
462
- <!-- SVG icon from http://tabler.io/icons/icon/brand-vk -->
463
- <svg
464
- xmlns="http://www.w3.org/2000/svg"
465
- class="icon"
466
- width="24"
467
- height="24"
468
- viewBox="0 0 24 24"
469
- stroke-width="2"
470
- stroke="currentColor"
471
- fill="none"
472
- stroke-linecap="round"
473
- stroke-linejoin="round"
474
- >
475
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
476
- <path
477
- d="M14 19h-4a8 8 0 0 1 -8 -8v-5h4v5a4 4 0 0 0 4 4h0v-9h4v4.5l.03 -.004a4.531 4.531 0 0 0 3.97 -4.496h4l-.342 1.711a6.858 6.858 0 0 1 -3.658 4.789h0a5.34 5.34 0 0 1 3.566 4.111l.434 2.389h0h-4a4.531 4.531 0 0 0 -3.97 -4.496v4.5z"
478
- />
479
- </svg>
480
- VK
481
- </a>
482
- <a href="#" class="btn btn-rss">
483
- <!-- SVG icon from http://tabler.io/icons/icon/brand-rss -->
484
- <svg
485
- xmlns="http://www.w3.org/2000/svg"
486
- class="icon"
487
- width="24"
488
- height="24"
489
- viewBox="0 0 24 24"
490
- stroke-width="2"
491
- stroke="currentColor"
492
- fill="none"
493
- stroke-linecap="round"
494
- stroke-linejoin="round"
495
- >
496
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
497
- <circle cx="5" cy="19" r="1" />
498
- <path d="M4 4a16 16 0 0 1 16 16" />
499
- <path d="M4 11a9 9 0 0 1 9 9" />
500
- </svg>
501
- RSS
502
- </a>
503
- <a href="#" class="btn btn-flickr">
504
- <!-- SVG icon from http://tabler.io/icons/icon/brand-flickr -->
505
- <svg
506
- xmlns="http://www.w3.org/2000/svg"
507
- class="icon"
508
- width="24"
509
- height="24"
510
- viewBox="0 0 24 24"
511
- stroke-width="2"
512
- stroke="currentColor"
513
- fill="none"
514
- stroke-linecap="round"
515
- stroke-linejoin="round"
516
- >
517
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
518
- <circle cx="7" cy="12" r="3" />
519
- <circle cx="17" cy="12" r="3" />
520
- </svg>
521
- Flickr
522
- </a>
523
- <a href="#" class="btn btn-bitbucket">
524
- <!-- SVG icon from http://tabler.io/icons/icon/brand-bitbucket -->
525
- <svg
526
- xmlns="http://www.w3.org/2000/svg"
527
- class="icon"
528
- width="24"
529
- height="24"
530
- viewBox="0 0 24 24"
531
- stroke-width="2"
532
- stroke="currentColor"
533
- fill="none"
534
- stroke-linecap="round"
535
- stroke-linejoin="round"
536
- >
537
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
538
- <path
539
- d="M3.648 4a0.64 .64 0 0 0 -.64 .744l3.14 14.528c.07 .417 .43 .724 .852 .728h10a0.644 .644 0 0 0 .642 -.539l3.35 -14.71a0.641 .641 0 0 0 -.64 -.744l-16.704 -.007z"
540
- />
541
- <path d="M14 15h-4l-1 -6h6z" />
542
- </svg>
543
- Bitbucket
544
- </a>
545
- <a href="#" class="btn btn-tabler">
546
- <!-- SVG icon from http://tabler.io/icons/icon/brand-tabler -->
547
- <svg
548
- xmlns="http://www.w3.org/2000/svg"
549
- class="icon"
550
- width="24"
551
- height="24"
552
- viewBox="0 0 24 24"
553
- stroke-width="2"
554
- stroke="currentColor"
555
- fill="none"
556
- stroke-linecap="round"
557
- stroke-linejoin="round"
558
- >
559
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
560
- <path d="M8 9l3 3l-3 3" />
561
- <line x1="13" y1="15" x2="16" y2="15" />
562
- <rect x="4" y="4" width="16" height="16" rx="4" />
563
- </svg>
564
- Tabler
565
- </a>
566
- ```
567
-
568
- ```html
569
- <a href="#" class="btn btn-facebook">
570
- <svg>...</svg>
571
- Facebook
572
- </a>
573
- ```
574
-
575
- You can also add an icon without the name of a social networking site, if you want to display more buttons in a small space.
576
-
577
- ```html example separated scrollable height="7rem"
578
- <a href="#" class="btn btn-facebook btn-icon" aria-label="Button">
579
- <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
580
- <svg
581
- xmlns="http://www.w3.org/2000/svg"
582
- class="icon"
583
- width="24"
584
- height="24"
585
- viewBox="0 0 24 24"
586
- stroke-width="2"
587
- stroke="currentColor"
588
- fill="none"
589
- stroke-linecap="round"
590
- stroke-linejoin="round"
591
- >
592
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
593
- <path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" />
594
- </svg>
595
- </a>
596
- <a href="#" class="btn btn-x btn-icon" aria-label="Button">
597
- <!-- SVG icon from http://tabler.io/icons/icon/brand-x -->
598
- <svg
599
- xmlns="http://www.w3.org/2000/svg"
600
- width="24"
601
- height="24"
602
- viewBox="0 0 24 24"
603
- fill="none"
604
- stroke="currentColor"
605
- stroke-width="2"
606
- stroke-linecap="round"
607
- stroke-linejoin="round"
608
- class="icon icon-tabler icons-tabler-outline icon-tabler-brand-x"
609
- >
610
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
611
- <path d="M4 4l11.733 16h4.267l-11.733 -16z" />
612
- <path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
613
- </svg>
614
- </a>
615
- <a href="#" class="btn btn-google btn-icon" aria-label="Button">
616
- <!-- SVG icon from http://tabler.io/icons/icon/brand-google -->
617
- <svg
618
- xmlns="http://www.w3.org/2000/svg"
619
- class="icon"
620
- width="24"
621
- height="24"
622
- viewBox="0 0 24 24"
623
- stroke-width="2"
624
- stroke="currentColor"
625
- fill="none"
626
- stroke-linecap="round"
627
- stroke-linejoin="round"
628
- >
629
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
630
- <path d="M17.788 5.108a9 9 0 1 0 3.212 6.892h-8" />
631
- </svg>
632
- </a>
633
- <a href="#" class="btn btn-youtube btn-icon" aria-label="Button">
634
- <!-- SVG icon from http://tabler.io/icons/icon/brand-youtube -->
635
- <svg
636
- xmlns="http://www.w3.org/2000/svg"
637
- class="icon"
638
- width="24"
639
- height="24"
640
- viewBox="0 0 24 24"
641
- stroke-width="2"
642
- stroke="currentColor"
643
- fill="none"
644
- stroke-linecap="round"
645
- stroke-linejoin="round"
646
- >
647
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
648
- <rect x="3" y="5" width="18" height="14" rx="4" />
649
- <path d="M10 9l5 3l-5 3z" />
650
- </svg>
651
- </a>
652
- <a href="#" class="btn btn-vimeo btn-icon" aria-label="Button">
653
- <!-- SVG icon from http://tabler.io/icons/icon/brand-vimeo -->
654
- <svg
655
- xmlns="http://www.w3.org/2000/svg"
656
- class="icon"
657
- width="24"
658
- height="24"
659
- viewBox="0 0 24 24"
660
- stroke-width="2"
661
- stroke="currentColor"
662
- fill="none"
663
- stroke-linecap="round"
664
- stroke-linejoin="round"
665
- >
666
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
667
- <path
668
- d="M3 8.5l1 1s1.5 -1.102 2 -.5c.509 .609 1.863 7.65 2.5 9c.556 1.184 1.978 2.89 4 1.5c2 -1.5 7.5 -5.5 8.5 -11.5c.444 -2.661 -1 -4 -2.5 -4c-2 0 -4.047 1.202 -4.5 4c2.05 -1.254 2.551 1.003 1.5 3c-1.052 2.005 -2 3 -2.5 3c-.49 0 -.924 -1.165 -1.5 -3.5c-.59 -2.42 -.5 -6.5 -3 -6.5s-5.5 4.5 -5.5 4.5z"
669
- />
670
- </svg>
671
- </a>
672
- <a href="#" class="btn btn-dribbble btn-icon" aria-label="Button">
673
- <!-- SVG icon from http://tabler.io/icons/icon/brand-dribbble -->
674
- <svg
675
- xmlns="http://www.w3.org/2000/svg"
676
- class="icon"
677
- width="24"
678
- height="24"
679
- viewBox="0 0 24 24"
680
- stroke-width="2"
681
- stroke="currentColor"
682
- fill="none"
683
- stroke-linecap="round"
684
- stroke-linejoin="round"
685
- >
686
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
687
- <circle cx="12" cy="12" r="9" />
688
- <path d="M9 3.6c5 6 7 10.5 7.5 16.2" />
689
- <path d="M6.4 19c3.5 -3.5 6 -6.5 14.5 -6.4" />
690
- <path d="M3.1 10.75c5 0 9.814 -.38 15.314 -5" />
691
- </svg>
692
- </a>
693
- <a href="#" class="btn btn-github btn-icon" aria-label="Button">
694
- <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
695
- <svg
696
- xmlns="http://www.w3.org/2000/svg"
697
- class="icon"
698
- width="24"
699
- height="24"
700
- viewBox="0 0 24 24"
701
- stroke-width="2"
702
- stroke="currentColor"
703
- fill="none"
704
- stroke-linecap="round"
705
- stroke-linejoin="round"
706
- >
707
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
708
- <path
709
- d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
710
- />
711
- </svg>
712
- </a>
713
- <a href="#" class="btn btn-instagram btn-icon" aria-label="Button">
714
- <!-- SVG icon from http://tabler.io/icons/icon/brand-instagram -->
715
- <svg
716
- xmlns="http://www.w3.org/2000/svg"
717
- class="icon"
718
- width="24"
719
- height="24"
720
- viewBox="0 0 24 24"
721
- stroke-width="2"
722
- stroke="currentColor"
723
- fill="none"
724
- stroke-linecap="round"
725
- stroke-linejoin="round"
726
- >
727
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
728
- <rect x="4" y="4" width="16" height="16" rx="4" />
729
- <circle cx="12" cy="12" r="3" />
730
- <line x1="16.5" y1="7.5" x2="16.5" y2="7.501" />
731
- </svg>
732
- </a>
733
- <a href="#" class="btn btn-pinterest btn-icon" aria-label="Button">
734
- <!-- SVG icon from http://tabler.io/icons/icon/brand-pinterest -->
735
- <svg
736
- xmlns="http://www.w3.org/2000/svg"
737
- class="icon"
738
- width="24"
739
- height="24"
740
- viewBox="0 0 24 24"
741
- stroke-width="2"
742
- stroke="currentColor"
743
- fill="none"
744
- stroke-linecap="round"
745
- stroke-linejoin="round"
746
- >
747
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
748
- <line x1="8" y1="20" x2="12" y2="11" />
749
- <path d="M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7" />
750
- <circle cx="12" cy="12" r="9" />
751
- </svg>
752
- </a>
753
- <a href="#" class="btn btn-vk btn-icon" aria-label="Button">
754
- <!-- SVG icon from http://tabler.io/icons/icon/brand-vk -->
755
- <svg
756
- xmlns="http://www.w3.org/2000/svg"
757
- class="icon"
758
- width="24"
759
- height="24"
760
- viewBox="0 0 24 24"
761
- stroke-width="2"
762
- stroke="currentColor"
763
- fill="none"
764
- stroke-linecap="round"
765
- stroke-linejoin="round"
766
- >
767
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
768
- <path
769
- d="M14 19h-4a8 8 0 0 1 -8 -8v-5h4v5a4 4 0 0 0 4 4h0v-9h4v4.5l.03 -.004a4.531 4.531 0 0 0 3.97 -4.496h4l-.342 1.711a6.858 6.858 0 0 1 -3.658 4.789h0a5.34 5.34 0 0 1 3.566 4.111l.434 2.389h0h-4a4.531 4.531 0 0 0 -3.97 -4.496v4.5z"
770
- />
771
- </svg>
772
- </a>
773
- <a href="#" class="btn btn-rss btn-icon" aria-label="Button">
774
- <!-- SVG icon from http://tabler.io/icons/icon/rss -->
775
- <svg
776
- xmlns="http://www.w3.org/2000/svg"
777
- class="icon"
778
- width="24"
779
- height="24"
780
- viewBox="0 0 24 24"
781
- stroke-width="2"
782
- stroke="currentColor"
783
- fill="none"
784
- stroke-linecap="round"
785
- stroke-linejoin="round"
786
- >
787
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
788
- <circle cx="5" cy="19" r="1" />
789
- <path d="M4 4a16 16 0 0 1 16 16" />
790
- <path d="M4 11a9 9 0 0 1 9 9" />
791
- </svg>
792
- </a>
793
- <a href="#" class="btn btn-flickr btn-icon" aria-label="Button">
794
- <!-- SVG icon from http://tabler.io/icons/icon/brand-flickr -->
795
- <svg
796
- xmlns="http://www.w3.org/2000/svg"
797
- class="icon"
798
- width="24"
799
- height="24"
800
- viewBox="0 0 24 24"
801
- stroke-width="2"
802
- stroke="currentColor"
803
- fill="none"
804
- stroke-linecap="round"
805
- stroke-linejoin="round"
806
- >
807
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
808
- <circle cx="7" cy="12" r="3" />
809
- <circle cx="17" cy="12" r="3" />
810
- </svg>
811
- </a>
812
- <a href="#" class="btn btn-bitbucket btn-icon" aria-label="Button">
813
- <!-- SVG icon from http://tabler.io/icons/icon/brand-bitbucket -->
814
- <svg
815
- xmlns="http://www.w3.org/2000/svg"
816
- class="icon"
817
- width="24"
818
- height="24"
819
- viewBox="0 0 24 24"
820
- stroke-width="2"
821
- stroke="currentColor"
822
- fill="none"
823
- stroke-linecap="round"
824
- stroke-linejoin="round"
825
- >
826
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
827
- <path
828
- d="M3.648 4a0.64 .64 0 0 0 -.64 .744l3.14 14.528c.07 .417 .43 .724 .852 .728h10a0.644 .644 0 0 0 .642 -.539l3.35 -14.71a0.641 .641 0 0 0 -.64 -.744l-16.704 -.007z"
829
- />
830
- <path d="M14 15h-4l-1 -6h6z" />
831
- </svg>
832
- </a>
833
- <a href="#" class="btn btn-tabler btn-icon" aria-label="Button">
834
- <!-- SVG icon from http://tabler.io/icons/icon/brand-tabler -->
835
- <svg
836
- xmlns="http://www.w3.org/2000/svg"
837
- class="icon"
838
- width="24"
839
- height="24"
840
- viewBox="0 0 24 24"
841
- stroke-width="2"
842
- stroke="currentColor"
843
- fill="none"
844
- stroke-linecap="round"
845
- stroke-linejoin="round"
846
- >
847
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
848
- <path d="M8 9l3 3l-3 3" />
849
- <line x1="13" y1="15" x2="16" y2="15" />
850
- <rect x="4" y="4" width="16" height="16" rx="4" />
851
- </svg>
852
- </a>
853
- ```
854
-
855
- ```html
856
- <a href="#" class="btn btn-facebook btn-icon" aria-label="Button">
857
- <svg>...</svg>
858
- </a>
859
- ```
860
-
861
- ## Icon buttons
862
-
863
- Add the `.btn-icon` class to remove unnecessary padding from your button and use an icon without any additional label. Thanks to that, you can save space and make the action easy to recognize for international users.
864
-
865
- ```html example centered separated height="7rem"
866
- <a href="#" class="btn btn-primary btn-icon" aria-label="Button">
867
- <!-- SVG icon from http://tabler.io/icons/icon/activity -->
868
- <svg
869
- xmlns="http://www.w3.org/2000/svg"
870
- class="icon"
871
- width="24"
872
- height="24"
873
- viewBox="0 0 24 24"
874
- stroke-width="2"
875
- stroke="currentColor"
876
- fill="none"
877
- stroke-linecap="round"
878
- stroke-linejoin="round"
879
- >
880
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
881
- <path d="M3 12h4l3 8l4 -16l3 8h4" />
882
- </svg>
883
- </a>
884
- <a href="#" class="btn btn-github btn-icon" aria-label="Button">
885
- <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
886
- <svg
887
- xmlns="http://www.w3.org/2000/svg"
888
- class="icon"
889
- width="24"
890
- height="24"
891
- viewBox="0 0 24 24"
892
- stroke-width="2"
893
- stroke="currentColor"
894
- fill="none"
895
- stroke-linecap="round"
896
- stroke-linejoin="round"
897
- >
898
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
899
- <path
900
- d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
901
- />
902
- </svg>
903
- </a>
904
- <a href="#" class="btn btn-success btn-icon" aria-label="Button">
905
- <!-- SVG icon from http://tabler.io/icons/icon/bell -->
906
- <svg
907
- xmlns="http://www.w3.org/2000/svg"
908
- class="icon"
909
- width="24"
910
- height="24"
911
- viewBox="0 0 24 24"
912
- stroke-width="2"
913
- stroke="currentColor"
914
- fill="none"
915
- stroke-linecap="round"
916
- stroke-linejoin="round"
917
- >
918
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
919
- <path
920
- 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"
921
- />
922
- <path d="M9 17v1a3 3 0 0 0 6 0v-1" />
923
- </svg>
924
- </a>
925
- <a href="#" class="btn btn-warning btn-icon" aria-label="Button">
926
- <!-- SVG icon from http://tabler.io/icons/icon/star -->
927
- <svg
928
- xmlns="http://www.w3.org/2000/svg"
929
- class="icon"
930
- width="24"
931
- height="24"
932
- viewBox="0 0 24 24"
933
- stroke-width="2"
934
- stroke="currentColor"
935
- fill="none"
936
- stroke-linecap="round"
937
- stroke-linejoin="round"
938
- >
939
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
940
- <path
941
- d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"
942
- />
943
- </svg>
944
- </a>
945
- <a href="#" class="btn btn-danger btn-icon" aria-label="Button">
946
- <!-- SVG icon from http://tabler.io/icons/icon/trash -->
947
- <svg
948
- xmlns="http://www.w3.org/2000/svg"
949
- class="icon"
950
- width="24"
951
- height="24"
952
- viewBox="0 0 24 24"
953
- stroke-width="2"
954
- stroke="currentColor"
955
- fill="none"
956
- stroke-linecap="round"
957
- stroke-linejoin="round"
958
- >
959
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
960
- <line x1="4" y1="7" x2="20" y2="7" />
961
- <line x1="10" y1="11" x2="10" y2="17" />
962
- <line x1="14" y1="11" x2="14" y2="17" />
963
- <path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" />
964
- <path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />
965
- </svg>
966
- </a>
967
- <a href="#" class="btn btn-purple btn-icon" aria-label="Button">
968
- <!-- SVG icon from http://tabler.io/icons/icon/chart-bar -->
969
- <svg
970
- xmlns="http://www.w3.org/2000/svg"
971
- class="icon"
972
- width="24"
973
- height="24"
974
- viewBox="0 0 24 24"
975
- stroke-width="2"
976
- stroke="currentColor"
977
- fill="none"
978
- stroke-linecap="round"
979
- stroke-linejoin="round"
980
- >
981
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
982
- <rect x="3" y="12" width="6" height="8" rx="1" />
983
- <rect x="9" y="8" width="6" height="12" rx="1" />
984
- <rect x="15" y="4" width="6" height="16" rx="1" />
985
- <line x1="4" y1="20" x2="18" y2="20" />
986
- </svg>
987
- </a>
988
- <a href="#" class="btn btn-icon" aria-label="Button">
989
- <!-- SVG icon from http://tabler.io/icons/icon/git-merge -->
990
- <svg
991
- xmlns="http://www.w3.org/2000/svg"
992
- class="icon"
993
- width="24"
994
- height="24"
995
- viewBox="0 0 24 24"
996
- stroke-width="2"
997
- stroke="currentColor"
998
- fill="none"
999
- stroke-linecap="round"
1000
- stroke-linejoin="round"
1001
- >
1002
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
1003
- <circle cx="7" cy="18" r="2" />
1004
- <circle cx="7" cy="6" r="2" />
1005
- <circle cx="17" cy="12" r="2" />
1006
- <line x1="7" y1="8" x2="7" y2="16" />
1007
- <path d="M7 8a4 4 0 0 0 4 4h4" />
1008
- </svg>
1009
- </a>
1010
- ```
1011
-
1012
- ```html
1013
- <a href="#" class="btn btn-primary btn-icon" aria-label="Button">
1014
- <svg>...</svg>
1015
- </a>
1016
- ```
1017
-
1018
- ## Dropdown buttons
1019
-
1020
- Create a dropdown button that will encourage users to click for more options. You can add a label with an icon or remove the label and add an icon on its own if you want to save space. Choose the option that will best suit your design and improve the user experience.
1021
-
1022
- ```html example separated height="10rem"
1023
- <div class="dropdown">
1024
- <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
1025
- <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
1026
- <svg
1027
- xmlns="http://www.w3.org/2000/svg"
1028
- class="icon"
1029
- width="24"
1030
- height="24"
1031
- viewBox="0 0 24 24"
1032
- stroke-width="2"
1033
- stroke="currentColor"
1034
- fill="none"
1035
- stroke-linecap="round"
1036
- stroke-linejoin="round"
1037
- >
1038
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
1039
- <rect x="4" y="5" width="16" height="16" rx="2" />
1040
- <line x1="16" y1="3" x2="16" y2="7" />
1041
- <line x1="8" y1="3" x2="8" y2="7" />
1042
- <line x1="4" y1="11" x2="20" y2="11" />
1043
- <line x1="11" y1="15" x2="12" y2="15" />
1044
- <line x1="12" y1="15" x2="12" y2="18" />
1045
- </svg>
1046
- </button>
1047
- <div class="dropdown-menu">
1048
- <a class="dropdown-item" href="#">Action</a>
1049
- <a class="dropdown-item" href="#">Another action</a>
1050
- </div>
1051
- </div>
1052
- <div class="dropdown">
1053
- <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
1054
- <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
1055
- <svg
1056
- xmlns="http://www.w3.org/2000/svg"
1057
- class="icon"
1058
- width="24"
1059
- height="24"
1060
- viewBox="0 0 24 24"
1061
- stroke-width="2"
1062
- stroke="currentColor"
1063
- fill="none"
1064
- stroke-linecap="round"
1065
- stroke-linejoin="round"
1066
- >
1067
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
1068
- <rect x="4" y="5" width="16" height="16" rx="2" />
1069
- <line x1="16" y1="3" x2="16" y2="7" />
1070
- <line x1="8" y1="3" x2="8" y2="7" />
1071
- <line x1="4" y1="11" x2="20" y2="11" />
1072
- <line x1="11" y1="15" x2="12" y2="15" />
1073
- <line x1="12" y1="15" x2="12" y2="18" />
1074
- </svg>
1075
- Show calendar
1076
- </button>
1077
- <div class="dropdown-menu">
1078
- <a class="dropdown-item" href="#">Action</a>
1079
- <a class="dropdown-item" href="#">Another action</a>
1080
- </div>
1081
- </div>
1082
- <div class="dropdown">
1083
- <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">Show calendar</button>
1084
- <div class="dropdown-menu">
1085
- <a class="dropdown-item" href="#">Action</a>
1086
- <a class="dropdown-item" href="#">Another action</a>
1087
- </div>
1088
- </div>
1089
- ```
1090
-
1091
- ```html
1092
- <div class="dropdown">
1093
- <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
1094
- <svg>...</svg>
1095
- </button>
1096
- <div class="dropdown-menu">
1097
- <a class="dropdown-item" href="#">Action</a>
1098
- <a class="dropdown-item" href="#">Another action</a>
1099
- </div>
1100
- </div>
1101
- ```
1102
-
1103
- ## Loading buttons
1104
-
1105
- Add the `.btn-loading` class to show a button's loading state, which can be useful in the case of operations that take longer to process. Thanks to that, users will be aware of the current state of their action and won't give it up before it's finished.
1106
-
1107
- ```html example centered separated height="7rem"
1108
- <a href="#" class="btn btn-primary btn-loading"> Button </a>
1109
- <a href="#" class="btn btn-primary btn-loading"> Loading button with loooong content </a>
1110
- ```
1111
-
1112
- ```html example centered height="7rem"
1113
- <a href="#" class="btn btn-primary">
1114
- <span class="spinner-border spinner-border-sm me-2" role="status"></span>
1115
- Button
1116
- </a>
1117
- ```
1118
-
1119
- ## List of buttons
1120
-
1121
- Create a list of buttons using the `.btn-list` container to display different actions a user can take. If you add additional styling, such as colors, you will be able to focus users' attention on a particular action or suggest the result.
1122
-
1123
- ```html example vertical centered columns={3} height="7rem"
1124
- <div class="btn-list">
1125
- <a href="#" class="btn btn-success">Save changes</a>
1126
- <a href="#" class="btn">Save and continue</a>
1127
- <a href="#" class="btn btn-danger">Cancel</a>
1128
- </div>
1129
- ```
1130
-
1131
- If the list is long, it will be wrapped and some buttons will be moved to the next line, keeping them all evenly spaced.
1132
-
1133
- ```html example centered
1134
- <div class="btn-list">
1135
- <a href="#" class="btn">One</a>
1136
- <a href="#" class="btn">Two</a>
1137
- <a href="#" class="btn">Three</a>
1138
- <a href="#" class="btn">Four</a>
1139
- <a href="#" class="btn">Five</a>
1140
- <a href="#" class="btn">Six</a>
1141
- <a href="#" class="btn">Seven</a>
1142
- <a href="#" class="btn">Eight</a>
1143
- <a href="#" class="btn">Nine</a>
1144
- <a href="#" class="btn">Ten</a>
1145
- <a href="#" class="btn">Eleven</a>
1146
- <a href="#" class="btn">Twelve</a>
1147
- <a href="#" class="btn">Thirteen</a>
1148
- <a href="#" class="btn">Fourteen</a>
1149
- <a href="#" class="btn">Fifteen</a>
1150
- <a href="#" class="btn">Sixteen</a>
1151
- <a href="#" class="btn">Seventeen</a>
1152
- <a href="#" class="btn">Eighteen</a>
1153
- <a href="#" class="btn">Nineteen</a>
1154
- </div>
1155
- ```
1156
-
1157
- Use the `.text-center` or the `.text-end` modifiers to change the buttons' alignment and place them where they suit best.
1158
-
1159
- ```html example vertical centered columns={3} height="7rem"
1160
- <div class="btn-list justify-content-center">
1161
- <a href="#" class="btn">Save and continue</a>
1162
- <a href="#" class="btn btn-primary">Save changes</a>
1163
- </div>
1164
- ```
1165
-
1166
- ```html example vertical centered columns={3} height="7rem"
1167
- <div class="btn-list justify-content-end">
1168
- <a href="#" class="btn">Save and continue</a>
1169
- <a href="#" class="btn btn-primary">Save changes</a>
1170
- </div>
1171
- ```
1172
-
1173
- ```html example vertical centered columns={3} height="7rem"
1174
- <div class="btn-list">
1175
- <a href="#" class="btn btn-outline-danger me-auto">Delete</a>
1176
- <a href="#" class="btn">Save and continue</a>
1177
- <a href="#" class="btn btn-primary">Save changes</a>
1178
- </div>
1179
- ```
1180
-
1181
- ## Buttons with avatars
1182
-
1183
- Use buttons with avatars to simplify the process of interaction and make your design more personalized. Buttons can contain avatars and labels or only avatars, if displayed on a smaller space.
1184
-
1185
- ```html example centered separated height="7rem"
1186
- <a href="#" class="btn">
1187
- <span
1188
- class="avatar"
1189
- style="
1190
- background-image: url(https://images.unsplash.com/photo-1542534759-05f6c34a9e63?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100);
1191
- "
1192
- ></span>
1193
- Avatar
1194
- </a>
1195
- <a href="#" class="btn">
1196
- <span
1197
- class="avatar"
1198
- style="
1199
- background-image: url(https://images.unsplash.com/photo-1546539782-6fc531453083?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100);
1200
- "
1201
- ></span>
1202
- Avatar
1203
- </a>
1204
- <a href="#" class="btn">
1205
- <span
1206
- class="avatar"
1207
- style="
1208
- background-image: url(https://images.unsplash.com/photo-1541585452861-0375331f10bf?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100);
1209
- "
1210
- ></span>
1211
- Avatar
1212
- </a>
1213
- ```