@tabler/core 1.0.0-beta22 → 1.0.0-beta23
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.
- package/dist/css/demo.css +2 -2
- package/dist/css/demo.min.css +2 -2
- package/dist/css/demo.rtl.css +2 -2
- package/dist/css/demo.rtl.min.css +2 -2
- package/dist/css/tabler-flags.css +2 -2
- package/dist/css/tabler-flags.min.css +2 -2
- package/dist/css/tabler-flags.rtl.css +2 -2
- package/dist/css/tabler-flags.rtl.min.css +2 -2
- package/dist/css/tabler-payments.css +2 -2
- package/dist/css/tabler-payments.min.css +2 -2
- package/dist/css/tabler-payments.rtl.css +2 -2
- package/dist/css/tabler-payments.rtl.min.css +2 -2
- package/dist/css/tabler-socials.css +221 -0
- package/dist/css/tabler-socials.min.css +9 -0
- package/dist/css/tabler-socials.rtl.css +221 -0
- package/dist/css/tabler-socials.rtl.min.css +9 -0
- package/dist/css/tabler-vendors.css +4 -3
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +4 -3
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +14 -6
- package/dist/css/tabler.min.css +4 -4
- package/dist/css/tabler.rtl.css +14 -6
- package/dist/css/tabler.rtl.min.css +4 -4
- package/dist/img/social/apple-gray.svg +3 -0
- package/dist/img/social/apple.svg +3 -0
- package/dist/img/social/discord-gray.svg +3 -0
- package/dist/img/social/discord.svg +3 -0
- package/dist/img/social/dribbble-gray.svg +3 -0
- package/dist/img/social/dribbble.svg +4 -0
- package/dist/img/social/facebook-gray.svg +3 -0
- package/dist/img/social/facebook.svg +4 -0
- package/dist/img/social/figma-gray.svg +3 -0
- package/dist/img/social/figma.svg +7 -0
- package/dist/img/social/github-gray.svg +10 -0
- package/dist/img/social/github.svg +10 -0
- package/dist/img/social/google-gray.svg +3 -0
- package/dist/img/social/google.svg +6 -0
- package/dist/img/social/instagram-gray.svg +5 -0
- package/dist/img/social/instagram.svg +18 -0
- package/dist/img/social/linkedin-gray.svg +3 -0
- package/dist/img/social/linkedin.svg +3 -0
- package/dist/img/social/medium-gray.svg +5 -0
- package/dist/img/social/medium.svg +5 -0
- package/dist/img/social/meta-gray.svg +5 -0
- package/dist/img/social/meta.svg +17 -0
- package/dist/img/social/metamask-gray.svg +12 -0
- package/dist/img/social/metamask.svg +14 -0
- package/dist/img/social/pinterest-gray.svg +3 -0
- package/dist/img/social/pinterest.svg +4 -0
- package/dist/img/social/reddit-gray.svg +6 -0
- package/dist/img/social/reddit.svg +11 -0
- package/dist/img/social/signal-gray.svg +10 -0
- package/dist/img/social/signal.svg +10 -0
- package/dist/img/social/skype-gray.svg +3 -0
- package/dist/img/social/skype.svg +3 -0
- package/dist/img/social/snapchat-gray.svg +10 -0
- package/dist/img/social/snapchat.svg +11 -0
- package/dist/img/social/spotify-gray.svg +3 -0
- package/dist/img/social/spotify.svg +3 -0
- package/dist/img/social/telegram-gray.svg +3 -0
- package/dist/img/social/telegram.svg +10 -0
- package/dist/img/social/tiktok-gray.svg +3 -0
- package/dist/img/social/tiktok.svg +5 -0
- package/dist/img/social/tumblr-gray.svg +3 -0
- package/dist/img/social/tumblr.svg +3 -0
- package/dist/img/social/twitch-gray.svg +5 -0
- package/dist/img/social/twitch.svg +6 -0
- package/dist/img/social/vk-gray.svg +3 -0
- package/dist/img/social/vk.svg +4 -0
- package/dist/img/social/x-gray.svg +3 -0
- package/dist/img/social/x.svg +3 -0
- package/dist/img/social/youtube-gray.svg +3 -0
- package/dist/img/social/youtube.svg +11 -0
- package/dist/js/demo-theme.js +2 -2
- package/dist/js/demo-theme.min.js +2 -2
- package/dist/js/demo.js +2 -2
- package/dist/js/demo.min.js +2 -2
- package/dist/js/tabler.esm.js +19 -4
- package/dist/js/tabler.esm.min.js +3 -3
- package/dist/js/tabler.js +19 -4
- package/dist/js/tabler.min.js +4 -4
- package/docs/icons/index.mdx +3 -93
- package/docs/icons/libraries/index.mdx +5 -0
- package/docs/icons/{preact.mdx → libraries/preact.mdx} +4 -2
- package/docs/icons/{react.mdx → libraries/react.mdx} +5 -3
- package/docs/icons/{solidjs.mdx → libraries/solidjs.mdx} +5 -2
- package/docs/icons/{svelte.mdx → libraries/svelte.mdx} +5 -2
- package/docs/icons/{vue.mdx → libraries/vue.mdx} +13 -8
- package/docs/icons/{webfont.mdx → libraries/webfont.mdx} +4 -1
- package/docs/icons/plugins/figma.mdx +15 -0
- package/docs/icons/plugins/index.mdx +4 -0
- package/docs/icons/{eps.mdx → static-files/eps.mdx} +3 -1
- package/docs/icons/static-files/index.mdx +5 -0
- package/docs/icons/{pdf.mdx → static-files/pdf.mdx} +3 -1
- package/docs/icons/static-files/png.mdx +31 -0
- package/docs/icons/{svg.mdx → static-files/svg.mdx} +18 -18
- package/docs/illustrations/index.mdx +8 -0
- package/docs/illustrations/introduction/customization.mdx +442 -0
- package/docs/illustrations/introduction/index.mdx +5 -0
- package/docs/img/browsers/brave.svg +1 -0
- package/docs/img/browsers/chrome.svg +1 -0
- package/docs/img/browsers/edge.svg +1 -0
- package/docs/img/browsers/electron.svg +1 -0
- package/docs/img/browsers/firefox.svg +1 -0
- package/docs/img/browsers/internet-explorer.svg +1 -0
- package/docs/img/browsers/opera.svg +1 -0
- package/docs/img/browsers/safari.svg +1 -0
- package/docs/img/browsers/vivaldi.svg +1 -0
- package/docs/img/cover-illustrations-dark.png +0 -0
- package/docs/img/cover-illustrations.png +0 -0
- package/docs/img/cover-tabler-dark.png +0 -0
- package/docs/img/cover-tabler.png +0 -0
- package/docs/img/icons/figma-plugin.png +0 -0
- package/docs/img/icons/package-angular-dark.png +0 -0
- package/docs/img/icons/package-angular.png +0 -0
- package/docs/img/icons/package-eps-dark.png +0 -0
- package/docs/img/icons/package-eps.png +0 -0
- package/docs/img/icons/package-js-dark.png +0 -0
- package/docs/img/icons/package-js.png +0 -0
- package/docs/img/icons/package-pdf-dark.png +0 -0
- package/docs/img/icons/package-pdf.png +0 -0
- package/docs/img/icons/package-png-dark.png +0 -0
- package/docs/img/icons/package-png.png +0 -0
- package/docs/img/icons/package-preact-dark.png +0 -0
- package/docs/img/icons/package-preact.png +0 -0
- package/docs/img/icons/package-react-dark.png +0 -0
- package/docs/img/icons/package-react-native-dark.png +0 -0
- package/docs/img/icons/package-react-native.png +0 -0
- package/docs/img/icons/package-react.png +0 -0
- package/docs/img/icons/package-solidjs-dark.png +0 -0
- package/docs/img/icons/package-solidjs.png +0 -0
- package/docs/img/icons/package-sprite-dark.png +0 -0
- package/docs/img/icons/package-sprite.png +0 -0
- package/docs/img/icons/package-svelte-dark.png +0 -0
- package/docs/img/icons/package-svelte.png +0 -0
- package/docs/img/icons/package-svg-dark.png +0 -0
- package/docs/img/icons/package-svg.png +0 -0
- package/docs/img/icons/package-vue-dark.png +0 -0
- package/docs/img/icons/package-vue.png +0 -0
- package/docs/img/icons/package-webfont-dark.png +0 -0
- package/docs/img/icons/package-webfont.png +0 -0
- package/docs/index.mdx +16 -0
- package/docs/ui/base/colors.mdx +63 -5
- package/docs/ui/base/index.mdx +6 -0
- package/docs/ui/base/typography.mdx +96 -101
- package/docs/ui/components/alerts.mdx +20 -19
- package/docs/ui/components/autosize.mdx +12 -3
- package/docs/ui/components/avatars.mdx +7 -4
- package/docs/ui/components/badges.mdx +25 -16
- package/docs/ui/components/breadcrumb.mdx +125 -59
- package/docs/ui/components/buttons.mdx +142 -87
- package/docs/ui/components/cards.mdx +48 -27
- package/docs/ui/components/carousel.mdx +8 -7
- package/docs/ui/components/charts.mdx +8 -7
- package/docs/ui/components/countup.mdx +13 -14
- package/docs/ui/components/datagrid.mdx +10 -2
- package/docs/ui/components/divider.mdx +6 -6
- package/docs/ui/components/dropdowns.mdx +24 -15
- package/docs/ui/components/dropzone.mdx +5 -11
- package/docs/ui/components/empty.mdx +7 -5
- package/docs/ui/components/icons.mdx +8 -7
- package/docs/ui/components/index.mdx +6 -0
- package/docs/ui/components/inline-player.mdx +4 -3
- package/docs/ui/components/modals.mdx +14 -9
- package/docs/ui/components/placeholder.mdx +12 -11
- package/docs/ui/components/popover.mdx +8 -9
- package/docs/ui/components/progress.mdx +120 -19
- package/docs/ui/components/range-slider.mdx +18 -3
- package/docs/ui/components/ribbons.mdx +13 -12
- package/docs/ui/components/spinners.mdx +31 -10
- package/docs/ui/components/statuses.mdx +38 -13
- package/docs/ui/components/steps.mdx +8 -7
- package/docs/ui/components/switch-icon.mdx +4 -3
- package/docs/ui/components/tables.mdx +37 -17
- package/docs/ui/components/tabs.mdx +17 -11
- package/docs/ui/components/timelines.mdx +48 -29
- package/docs/ui/components/tinymce.mdx +3 -2
- package/docs/ui/components/toasts.mdx +3 -2
- package/docs/ui/components/tooltips.mdx +4 -3
- package/docs/ui/components/tracking.mdx +39 -34
- package/docs/ui/forms/form-color-check.mdx +36 -11
- package/docs/ui/forms/form-elements.mdx +32 -16
- package/docs/ui/forms/form-fieldset.mdx +3 -2
- package/docs/ui/forms/form-helpers.mdx +71 -4
- package/docs/ui/forms/form-image-check.mdx +43 -29
- package/docs/ui/forms/form-input-mask.mdx +33 -5
- package/docs/ui/forms/form-selectboxes.mdx +101 -16
- package/docs/ui/forms/form-validation.mdx +54 -13
- package/docs/ui/forms/index.mdx +6 -0
- package/docs/ui/getting-started/browser-support.mdx +2 -0
- package/docs/ui/getting-started/customize.mdx +5 -4
- package/docs/ui/getting-started/development.mdx +32 -0
- package/docs/ui/getting-started/download.mdx +3 -5
- package/docs/ui/getting-started/faq.mdx +3 -1
- package/docs/ui/getting-started/index.mdx +4 -28
- package/docs/ui/index.mdx +8 -0
- package/docs/ui/layout/index.mdx +6 -0
- package/docs/ui/layout/page-headers.mdx +16 -9
- package/docs/ui/layout/page-layouts.mdx +4 -3
- package/docs/ui/plugins/flags.mdx +270 -6
- package/docs/ui/plugins/index.mdx +6 -0
- package/docs/ui/plugins/payments.mdx +108 -4
- package/docs/ui/plugins/social-icons.mdx +135 -0
- package/docs/ui/utilities/borders.mdx +2 -1
- package/docs/ui/utilities/cursors.mdx +2 -1
- package/docs/ui/utilities/index.mdx +5 -0
- package/docs/ui/utilities/interactions.mdx +10 -5
- package/package.json +4 -3
- package/src/js/src/countup.js +17 -0
- package/src/js/tabler.esm.js +1 -0
- package/src/js/tabler.js +1 -0
- package/src/scss/_variables.scss +2 -4
- package/src/scss/tabler-socials.scss +2 -0
- package/src/scss/ui/_buttons.scss +1 -0
- package/src/scss/ui/_forms.scss +4 -0
- package/src/scss/ui/_social.scss +52 -0
- package/src/scss/ui/_tables.scss +0 -1
- package/src/scss/ui/_type.scss +4 -0
- package/src/scss/vendor/_tom-select.scss +1 -0
- package/dist/css/tabler-social.css +0 -10
- package/dist/css/tabler-social.min.css +0 -8
- package/dist/css/tabler-social.rtl.css +0 -10
- package/dist/css/tabler-social.rtl.min.css +0 -8
- package/docs/icons/figma.mdx +0 -7
- package/docs/icons/png.mdx +0 -19
- package/docs/menu.json +0 -317
- package/docs/ui/components/progressbg.mdx +0 -16
- package/src/scss/tabler-social.scss +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Alerts
|
|
3
|
-
|
|
3
|
+
summary: Alert messages are used to inform users of the status of their action and help them solve any problems that might have occurred. Good design of alert modals is very important for the overall user experience of a website or app.
|
|
4
4
|
bootstrapLink: components/alerts/
|
|
5
|
+
description: Alert messages for user notifications.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
@@ -38,7 +39,7 @@ Depending on the information you need to convey, you can use one of the followin
|
|
|
38
39
|
|
|
39
40
|
Add a link to your alert message to redirect users to the details they need to complete or additional information they should read.
|
|
40
41
|
|
|
41
|
-
```html example vertical
|
|
42
|
+
```html example vertical height="7rem"
|
|
42
43
|
<div class="alert alert-danger m-0">
|
|
43
44
|
This is a danger alert — <a href="#" class="alert-link">check it out</a>!
|
|
44
45
|
</div>
|
|
@@ -120,7 +121,7 @@ Add the `x` close button to make an alert modal dismissible. Thanks to that, you
|
|
|
120
121
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
121
122
|
<div class="d-flex">
|
|
122
123
|
<div>
|
|
123
|
-
<!-- SVG icon from http://tabler
|
|
124
|
+
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
124
125
|
<svg>...</svg>
|
|
125
126
|
</div>
|
|
126
127
|
<div>
|
|
@@ -204,7 +205,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
204
205
|
<div class="alert alert-success" role="alert">
|
|
205
206
|
<div class="d-flex">
|
|
206
207
|
<div>
|
|
207
|
-
<!-- SVG icon from http://tabler
|
|
208
|
+
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
208
209
|
<svg>...</svg>
|
|
209
210
|
</div>
|
|
210
211
|
<div>
|
|
@@ -216,7 +217,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
216
217
|
<div class="alert alert-info" role="alert">
|
|
217
218
|
<div class="d-flex">
|
|
218
219
|
<div>
|
|
219
|
-
<!-- SVG icon from http://tabler
|
|
220
|
+
<!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
|
|
220
221
|
<svg>...</svg>
|
|
221
222
|
</div>
|
|
222
223
|
<div>
|
|
@@ -228,7 +229,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
228
229
|
<div class="alert alert-warning" role="alert">
|
|
229
230
|
<div class="d-flex">
|
|
230
231
|
<div>
|
|
231
|
-
<!-- SVG icon from http://tabler
|
|
232
|
+
<!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
|
|
232
233
|
<svg>...</svg>
|
|
233
234
|
</div>
|
|
234
235
|
<div>
|
|
@@ -240,7 +241,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
240
241
|
<div class="alert alert-danger" role="alert">
|
|
241
242
|
<div class="d-flex">
|
|
242
243
|
<div>
|
|
243
|
-
<!-- SVG icon from http://tabler
|
|
244
|
+
<!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
|
|
244
245
|
<svg>...</svg>
|
|
245
246
|
</div>
|
|
246
247
|
<div>
|
|
@@ -255,7 +256,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
255
256
|
|
|
256
257
|
Add an avatar to your alert modal to make it more personalized.
|
|
257
258
|
|
|
258
|
-
```html
|
|
259
|
+
```html example height="420px"
|
|
259
260
|
<div class="alert alert-success" role="alert">
|
|
260
261
|
<div class="d-flex">
|
|
261
262
|
<div>
|
|
@@ -302,7 +303,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
302
303
|
|
|
303
304
|
Add primary and secondary buttons to your alert modals if you want users to take a particular action based on the information included in the modal message.
|
|
304
305
|
|
|
305
|
-
```html
|
|
306
|
+
```html example height="500px" scrollable
|
|
306
307
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
307
308
|
<h3 class="mb-1">Some Title</h3>
|
|
308
309
|
<p>Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.</p>
|
|
@@ -349,14 +350,14 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
349
350
|
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
350
351
|
<div class="d-flex">
|
|
351
352
|
<div>
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon alert-icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
354
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
355
|
+
<path d="M5 12l5 5l10 -10"></path>
|
|
356
|
+
</svg>
|
|
356
357
|
</div>
|
|
357
358
|
<div>
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
<h4 class="alert-title">Wow! Everything worked!</h4>
|
|
360
|
+
<div class="text-secondary">Your account has been saved!</div>
|
|
360
361
|
</div>
|
|
361
362
|
</div>
|
|
362
363
|
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
@@ -381,7 +382,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
381
382
|
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
382
383
|
<div class="d-flex">
|
|
383
384
|
<div>
|
|
384
|
-
<!-- SVG icon from http://tabler
|
|
385
|
+
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
385
386
|
<svg>...</svg>
|
|
386
387
|
</div>
|
|
387
388
|
<div>
|
|
@@ -393,7 +394,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
393
394
|
<div class="alert alert-important alert-info alert-dismissible" role="alert">
|
|
394
395
|
<div class="d-flex">
|
|
395
396
|
<div>
|
|
396
|
-
<!-- SVG icon from http://tabler
|
|
397
|
+
<!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
|
|
397
398
|
<svg>...</svg>
|
|
398
399
|
</div>
|
|
399
400
|
<div>
|
|
@@ -405,7 +406,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
405
406
|
<div class="alert alert-important alert-warning alert-dismissible" role="alert">
|
|
406
407
|
<div class="d-flex">
|
|
407
408
|
<div>
|
|
408
|
-
<!-- SVG icon from http://tabler
|
|
409
|
+
<!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
|
|
409
410
|
<svg>...</svg>
|
|
410
411
|
</div>
|
|
411
412
|
<div>
|
|
@@ -417,7 +418,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
417
418
|
<div class="alert alert-important alert-danger alert-dismissible" role="alert">
|
|
418
419
|
<div class="d-flex">
|
|
419
420
|
<div>
|
|
420
|
-
<!-- SVG icon from http://tabler
|
|
421
|
+
<!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
|
|
421
422
|
<svg>...</svg>
|
|
422
423
|
</div>
|
|
423
424
|
<div>
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Autosize
|
|
3
|
-
|
|
3
|
+
summary: The autosize element will automatically adjust the textarea height and make it easier for users to follow as they type.
|
|
4
4
|
libs: autosize
|
|
5
|
+
description: Auto-adjusting textarea for better usability.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
To be able to use the autosize in your application you will need to install the autosize dependency with `npm install autosize`.
|
|
8
9
|
|
|
9
10
|
## Default markup
|
|
10
11
|
|
|
11
|
-
Add the autosize element to your input to make it automatically adjust to the length of a text as a user types it.
|
|
12
|
+
Add the autosize element to your input to make it automatically adjust to the length of a text as a user types it.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
To create autosize textarea, add the `data-bs-toggle="autosize"` attribute to the textarea element:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<textarea class="form-control" data-bs-toggle="autosize" placeholder="Type something…"></textarea>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Look at the example below to see how the autosize element works:
|
|
21
|
+
|
|
22
|
+
```html example centered columns={1} scrollable background="bg-light" height="20rem"
|
|
14
23
|
<label class="form-label">Autosize example</label>
|
|
15
24
|
<textarea class="form-control" data-bs-toggle="autosize" placeholder="Type something…"></textarea>
|
|
16
25
|
```
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Avatars
|
|
3
|
-
|
|
3
|
+
summary: Avatars help customise various elements of a user interface and make the product experience more personalised. They are often used in communication apps, collaboration tools and social media.
|
|
4
|
+
description: Personalize UI with user avatars.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Default markup
|
|
@@ -66,14 +67,14 @@ Apart from pictures and initials, you can also use icons to make the avatars mor
|
|
|
66
67
|
|
|
67
68
|
```html
|
|
68
69
|
<span class="avatar">
|
|
69
|
-
<!-- SVG icon from http://tabler
|
|
70
|
+
<!-- SVG icon from http://tabler.io/icons/icon/user -->
|
|
70
71
|
<svg>...</svg>
|
|
71
72
|
</span>
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
## Avatar initials color
|
|
75
76
|
|
|
76
|
-
Customize the color of the avatars' background. You can click [here](/docs/ui/colors) to see the list of available colors.
|
|
77
|
+
Customize the color of the avatars' background. You can click [here](/docs/ui/base/colors) to see the list of available colors.
|
|
77
78
|
|
|
78
79
|
```html example centered separated code
|
|
79
80
|
<span class="avatar bg-green-lt">AB</span>
|
|
@@ -108,7 +109,9 @@ Add a status indicator to your avatar to show, for instance, if a users is onlin
|
|
|
108
109
|
<span class="avatar" style="background-image: url(/samples/avatars/022m.jpg)">
|
|
109
110
|
<span class="badge bg-success"></span>
|
|
110
111
|
</span>
|
|
111
|
-
<span class="avatar"
|
|
112
|
+
<span class="avatar">
|
|
113
|
+
<span class="badge bg-warning"></span>SA
|
|
114
|
+
</span>
|
|
112
115
|
<span class="avatar" style="background-image: url(/samples/avatars/022m.jpg)">
|
|
113
116
|
<span class="badge bg-info"></span>
|
|
114
117
|
</span>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Badges
|
|
3
|
-
|
|
3
|
+
summary: Badges are small count and labeling components, which are used to add extra information to an interface element. You can use them to draw users' attention to a new element, notify about unread messages or provide any kind of additional info.
|
|
4
|
+
description: Add extra information with badges.
|
|
4
5
|
bootstrapLink: components/badge/
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@ bootstrapLink: components/badge/
|
|
|
8
9
|
|
|
9
10
|
The default badges are square and come in the basic set of colors.
|
|
10
11
|
|
|
11
|
-
```html
|
|
12
|
+
```html example vertical centered separated scrollable height="15rem"
|
|
12
13
|
<span class="badge bg-blue">Blue</span>
|
|
13
14
|
<span class="badge bg-azure">Azure</span>
|
|
14
15
|
<span class="badge bg-indigo">Indigo</span>
|
|
@@ -25,18 +26,24 @@ The default badges are square and come in the basic set of colors.
|
|
|
25
26
|
|
|
26
27
|
## Headings
|
|
27
28
|
|
|
28
|
-
```html
|
|
29
|
-
<h1>Example heading <span class="badge bg-secondary">New</span
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
29
|
+
```html example height="240px"
|
|
30
|
+
<h1>Example heading <span class="badge bg-secondary">New</span>
|
|
31
|
+
</h1>
|
|
32
|
+
<h2>Example heading <span class="badge bg-secondary">New</span>
|
|
33
|
+
</h2>
|
|
34
|
+
<h3>Example heading <span class="badge bg-secondary">New</span>
|
|
35
|
+
</h3>
|
|
36
|
+
<h4>Example heading <span class="badge bg-secondary">New</span>
|
|
37
|
+
</h4>
|
|
38
|
+
<h5>Example heading <span class="badge bg-secondary">New</span>
|
|
39
|
+
</h5>
|
|
40
|
+
<h6>Example heading <span class="badge bg-secondary">New</span>
|
|
41
|
+
</h6>
|
|
35
42
|
```
|
|
36
43
|
|
|
37
44
|
## Outline badges
|
|
38
45
|
|
|
39
|
-
```html
|
|
46
|
+
```html example vertical centered separated scrollable height="15rem"
|
|
40
47
|
<span class="badge badge-outline text-blue">blue</span>
|
|
41
48
|
<span class="badge badge-outline text-azure">azure</span>
|
|
42
49
|
<span class="badge badge-outline text-indigo">indigo</span>
|
|
@@ -55,7 +62,7 @@ The default badges are square and come in the basic set of colors.
|
|
|
55
62
|
|
|
56
63
|
Use the `.badge-pill` class if you want to create a badge with rounded corners. Its width will adjust to the label text.
|
|
57
64
|
|
|
58
|
-
```html
|
|
65
|
+
```html example centered separated height="7rem"
|
|
59
66
|
<span class="badge badge-pill bg-blue">1</span>
|
|
60
67
|
<span class="badge badge-pill bg-azure">2</span>
|
|
61
68
|
<span class="badge badge-pill bg-indigo">3</span>
|
|
@@ -72,9 +79,9 @@ Use the `.badge-pill` class if you want to create a badge with rounded corners.
|
|
|
72
79
|
|
|
73
80
|
## Soft color badges
|
|
74
81
|
|
|
75
|
-
You can create a soft colour variant of a corresponding contextual badge variation, to make it look more subtle. Click [here](/docs/ui/colors) to see the list of available colors and choose ones that best suit your design.
|
|
82
|
+
You can create a soft colour variant of a corresponding contextual badge variation, to make it look more subtle. Click [here](/docs/ui/base/colors) to see the list of available colors and choose ones that best suit your design.
|
|
76
83
|
|
|
77
|
-
```html
|
|
84
|
+
```html example vertical centered separated scrollable height="15rem"
|
|
78
85
|
<span class="badge bg-blue-lt">Blue</span>
|
|
79
86
|
<span class="badge bg-azure-lt">Azure</span>
|
|
80
87
|
<span class="badge bg-indigo-lt">Indigo</span>
|
|
@@ -93,7 +100,7 @@ You can create a soft colour variant of a corresponding contextual badge variati
|
|
|
93
100
|
|
|
94
101
|
Place the badge within an `<a>` element if you want it to perform the function of a link and make it clickable.
|
|
95
102
|
|
|
96
|
-
```html
|
|
103
|
+
```html example vertical centered separated scrollable height="15rem"
|
|
97
104
|
<a href="#" class="badge bg-blue">Blue</a>
|
|
98
105
|
<a href="#" class="badge bg-azure">Azure</a>
|
|
99
106
|
<a href="#" class="badge bg-indigo">Indigo</a>
|
|
@@ -113,8 +120,10 @@ Place the badge within an `<a>` element if you want it to perform the function o
|
|
|
113
120
|
Badges can be used as part of links or buttons to provide a counter.
|
|
114
121
|
|
|
115
122
|
```html example centered separated height="7rem"
|
|
116
|
-
<button type="button" class="btn">Notifications <span class="badge bg-red ms-2">4</span
|
|
117
|
-
|
|
123
|
+
<button type="button" class="btn">Notifications <span class="badge bg-red ms-2">4</span>
|
|
124
|
+
</button>
|
|
125
|
+
<button type="button" class="btn">Notifications <span class="badge bg-green ms-2">4</span>
|
|
126
|
+
</button>
|
|
118
127
|
```
|
|
119
128
|
|
|
120
129
|
```html
|
|
@@ -1,62 +1,153 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Breadcrumb
|
|
3
|
-
|
|
3
|
+
summary: Breadcrumbs are used to show the current website or app location and reduce the number of actions users have to take. Thanks to breadcrumbs, they can easily navigate within the website hierarchy and better understand its structure.
|
|
4
4
|
bootstrapLink: components/breadcrumb/
|
|
5
|
+
description: Navigation aid for better structure.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
Use the `breadcrumb` class to add a breadcrumb to your interface design for better navigation. The `active` modifier in a `li` tag will help you indicate the current page location and facilitate navigation within your website or app.
|
|
10
11
|
|
|
11
|
-
```html
|
|
12
|
-
<ol class="breadcrumb"
|
|
13
|
-
<li class="breadcrumb-item"
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
```html
|
|
13
|
+
<ol class="breadcrumb">
|
|
14
|
+
<li class="breadcrumb-item">
|
|
15
|
+
<a href="#">...</a>
|
|
16
|
+
</li>
|
|
17
|
+
<li class="breadcrumb-item active">
|
|
18
|
+
<a href="#">...</a>
|
|
19
|
+
</li>
|
|
20
|
+
</ol>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Look at the example below to see how breadcrumbs work in practice.
|
|
24
|
+
|
|
25
|
+
```html example centered
|
|
26
|
+
<ol class="breadcrumb">
|
|
27
|
+
<li class="breadcrumb-item">
|
|
28
|
+
<a href="#">Home</a>
|
|
29
|
+
</li>
|
|
30
|
+
<li class="breadcrumb-item">
|
|
31
|
+
<a href="#">Library</a>
|
|
32
|
+
</li>
|
|
33
|
+
<li class="breadcrumb-item active">
|
|
34
|
+
<a href="#">Data</a>
|
|
35
|
+
</li>
|
|
16
36
|
</ol>
|
|
17
37
|
```
|
|
18
38
|
|
|
19
|
-
##
|
|
39
|
+
## Different separators
|
|
20
40
|
|
|
21
|
-
|
|
41
|
+
You can use different breadcrumb styles to match your website or app design. Choose between `breadcrumb-dots`, `breadcrumb-arrows`, and `breadcrumb-bullets` to create a unique look.
|
|
22
42
|
|
|
23
|
-
```html
|
|
24
|
-
<ol class="breadcrumb breadcrumb-dots"
|
|
25
|
-
|
|
26
|
-
<li class="breadcrumb-item"><a href="#">Library</a></li>
|
|
27
|
-
<li class="breadcrumb-item active" aria-current="page"><a href="#">Data</a></li>
|
|
43
|
+
```html
|
|
44
|
+
<ol class="breadcrumb breadcrumb-dots">
|
|
45
|
+
...
|
|
28
46
|
</ol>
|
|
29
47
|
```
|
|
30
48
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<li class="breadcrumb-item
|
|
49
|
+
This example shows how to use different breadcrumb styles.
|
|
50
|
+
|
|
51
|
+
```html example centered separated vertical
|
|
52
|
+
<ol class="breadcrumb breadcrumb-dots">
|
|
53
|
+
<li class="breadcrumb-item">
|
|
54
|
+
<a href="#">Home</a>
|
|
55
|
+
</li>
|
|
56
|
+
<li class="breadcrumb-item">
|
|
57
|
+
<a href="#">Library</a>
|
|
58
|
+
</li>
|
|
59
|
+
<li class="breadcrumb-item active">
|
|
60
|
+
<a href="#">Data</a>
|
|
61
|
+
</li>
|
|
62
|
+
</ol>
|
|
63
|
+
<ol class="breadcrumb breadcrumb-arrows">
|
|
64
|
+
<li class="breadcrumb-item">
|
|
65
|
+
<a href="#">Home</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li class="breadcrumb-item">
|
|
68
|
+
<a href="#">Library</a>
|
|
69
|
+
</li>
|
|
70
|
+
<li class="breadcrumb-item active">
|
|
71
|
+
<a href="#">Data</a>
|
|
72
|
+
</li>
|
|
73
|
+
</ol>
|
|
74
|
+
<ol class="breadcrumb breadcrumb-bullets">
|
|
75
|
+
<li class="breadcrumb-item">
|
|
76
|
+
<a href="#">Home</a>
|
|
77
|
+
</li>
|
|
78
|
+
<li class="breadcrumb-item">
|
|
79
|
+
<a href="#">Library</a>
|
|
80
|
+
</li>
|
|
81
|
+
<li class="breadcrumb-item active">
|
|
82
|
+
<a href="#">Data</a>
|
|
83
|
+
</li>
|
|
36
84
|
</ol>
|
|
37
85
|
```
|
|
38
86
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
87
|
+
## With icon
|
|
88
|
+
|
|
89
|
+
You can use icons in breadcrumbs to make them more visually appealing. The example below demonstrates how to use icons in breadcrumbs.
|
|
90
|
+
|
|
91
|
+
```html example centered
|
|
92
|
+
<ol class="breadcrumb">
|
|
93
|
+
<li class="breadcrumb-item">
|
|
94
|
+
<a href="#">
|
|
95
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
96
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
97
|
+
<polyline points="5 12 3 12 12 3 21 12 19 12" />
|
|
98
|
+
<path d="M5 12v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8" />
|
|
99
|
+
<rect x="10" y="12" width="4" height="4" />
|
|
100
|
+
</svg>
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li class="breadcrumb-item">
|
|
104
|
+
<a href="#">Library</a>
|
|
105
|
+
</li>
|
|
106
|
+
<li class="breadcrumb-item active">
|
|
107
|
+
<a href="#">Data</a>
|
|
108
|
+
</li>
|
|
44
109
|
</ol>
|
|
45
110
|
```
|
|
46
111
|
|
|
112
|
+
## Muted breadcrumbs
|
|
113
|
+
|
|
114
|
+
You can use the `breadcrumb-muted` class to create a muted breadcrumb style. This style is perfect for breadcrumbs that are not the main focus of your website or app.
|
|
115
|
+
|
|
116
|
+
```html example centered
|
|
117
|
+
<nav aria-label="breadcrumb">
|
|
118
|
+
<ol class="breadcrumb breadcrumb-muted">
|
|
119
|
+
<li class="breadcrumb-item">
|
|
120
|
+
<a href="#">Home</a>
|
|
121
|
+
</li>
|
|
122
|
+
<li class="breadcrumb-item">
|
|
123
|
+
<a href="#">Library</a>
|
|
124
|
+
</li>
|
|
125
|
+
<li class="breadcrumb-item active">
|
|
126
|
+
<a href="#">Data</a>
|
|
127
|
+
</li>
|
|
128
|
+
</ol>
|
|
129
|
+
</nav>
|
|
130
|
+
```
|
|
131
|
+
|
|
47
132
|
## Breadcrumb in headers
|
|
48
133
|
|
|
49
|
-
|
|
134
|
+
You can use breadcrumbs in headers to show the current page location and provide a better navigation experience. The example below demonstrates how to use breadcrumbs in headers.
|
|
50
135
|
|
|
51
|
-
```html example vertical centered columns={3}
|
|
136
|
+
```html example vertical centered columns={3} background="surface"
|
|
52
137
|
<div class="page-header">
|
|
53
138
|
<div class="row align-items-center mw-100">
|
|
54
139
|
<div class="col">
|
|
55
140
|
<div class="mb-1">
|
|
56
|
-
<ol class="breadcrumb"
|
|
57
|
-
<li class="breadcrumb-item"
|
|
58
|
-
|
|
59
|
-
|
|
141
|
+
<ol class="breadcrumb">
|
|
142
|
+
<li class="breadcrumb-item">
|
|
143
|
+
<a href="#">Home</a>
|
|
144
|
+
</li>
|
|
145
|
+
<li class="breadcrumb-item">
|
|
146
|
+
<a href="#">Library</a>
|
|
147
|
+
</li>
|
|
148
|
+
<li class="breadcrumb-item active">
|
|
149
|
+
<a href="#">Articles</a>
|
|
150
|
+
</li>
|
|
60
151
|
</ol>
|
|
61
152
|
</div>
|
|
62
153
|
<h2 class="page-title">
|
|
@@ -65,39 +156,13 @@ If you wish to use breadcrumbs in headers, place them above the headers.
|
|
|
65
156
|
</div>
|
|
66
157
|
<div class="col-auto">
|
|
67
158
|
<div class="btn-list">
|
|
68
|
-
<a href="#" class="btn d-none d-md-inline-flex"
|
|
159
|
+
<a href="#" class="btn d-none d-md-inline-flex">
|
|
160
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
69
161
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
70
162
|
<path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
|
|
71
163
|
<path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
|
|
72
164
|
<path d="M16 5l3 3" />
|
|
73
|
-
</svg> Edit
|
|
74
|
-
<a href="#" class="btn btn-primary">Publish</a>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
```html
|
|
82
|
-
<div class="page-header">
|
|
83
|
-
<div class="row align-items-center mw-100">
|
|
84
|
-
<div class="col">
|
|
85
|
-
<div class="mb-1">
|
|
86
|
-
<ol class="breadcrumb" aria-label="breadcrumbs">
|
|
87
|
-
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
|
88
|
-
<li class="breadcrumb-item"><a href="#">Library</a></li>
|
|
89
|
-
<li class="breadcrumb-item active" aria-current="page"><a href="#">Articles</a></li>
|
|
90
|
-
</ol>
|
|
91
|
-
</div>
|
|
92
|
-
<h2 class="page-title">
|
|
93
|
-
<span class="text-truncate">Knights of Ni, we are but simple travelers who seek the enchanter who lives beyond these woods.</span>
|
|
94
|
-
</h2>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="col-auto">
|
|
97
|
-
<div class="btn-list">
|
|
98
|
-
<a href="#" class="btn d-none d-md-inline-flex">
|
|
99
|
-
<!-- SVG icon from http://tabler-icons.io/i/edit -->
|
|
100
|
-
<svg>...</svg> Edit
|
|
165
|
+
</svg> Edit
|
|
101
166
|
</a>
|
|
102
167
|
<a href="#" class="btn btn-primary">Publish</a>
|
|
103
168
|
</div>
|
|
@@ -105,3 +170,4 @@ If you wish to use breadcrumbs in headers, place them above the headers.
|
|
|
105
170
|
</div>
|
|
106
171
|
</div>
|
|
107
172
|
```
|
|
173
|
+
|