@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,20 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Dropzone
|
|
3
|
-
|
|
4
|
-
description:
|
|
3
|
+
summary: Dropzone is a simple JavaScript library that helps you add file drag and drop functionality to your web forms. It is one of the most popular drag and drop library on the web and is used by millions of people.
|
|
4
|
+
description: Drag-and-drop file upload tool.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Default Dropzone
|
|
8
8
|
|
|
9
|
-
```html example
|
|
9
|
+
```html example vendors height="240px" libs="dropzone"
|
|
10
10
|
<form class="dropzone" id="dropzone-default" action="." autocomplete="off" novalidate>
|
|
11
11
|
<div class="fallback">
|
|
12
12
|
<input name="file" type="file" />
|
|
13
13
|
</div>
|
|
14
14
|
</form>
|
|
15
15
|
|
|
16
|
-
<link href="$TABLER_CDN/dist/libs/dropzone/dist/dropzone.css" rel="stylesheet" />
|
|
17
|
-
<script src="$TABLER_CDN/dist/libs/dropzone/dist/dropzone-min.js"></script>
|
|
18
16
|
<script>
|
|
19
17
|
document.addEventListener("DOMContentLoaded", function() {
|
|
20
18
|
new Dropzone("#dropzone-default")
|
|
@@ -24,15 +22,13 @@ description: Dropzone is a simple JavaScript library that helps you add file dra
|
|
|
24
22
|
|
|
25
23
|
## Add multiple files
|
|
26
24
|
|
|
27
|
-
```html example
|
|
25
|
+
```html example vendors height="240px" libs="dropzone"
|
|
28
26
|
<form class="dropzone" id="dropzone-mulitple" action="." autocomplete="off" novalidate>
|
|
29
27
|
<div class="fallback">
|
|
30
28
|
<input name="file" type="file" multiple />
|
|
31
29
|
</div>
|
|
32
30
|
</form>
|
|
33
31
|
|
|
34
|
-
<link href="$TABLER_CDN/dist/libs/dropzone/dist/dropzone.css" rel="stylesheet" />
|
|
35
|
-
<script src="$TABLER_CDN/dist/libs/dropzone/dist/dropzone-min.js"></script>
|
|
36
32
|
<script>
|
|
37
33
|
document.addEventListener("DOMContentLoaded", function() {
|
|
38
34
|
new Dropzone("#dropzone-mulitple")
|
|
@@ -42,7 +38,7 @@ description: Dropzone is a simple JavaScript library that helps you add file dra
|
|
|
42
38
|
|
|
43
39
|
## Custom Dropzone
|
|
44
40
|
|
|
45
|
-
```html example
|
|
41
|
+
```html example vendors height="240px" libs="dropzone"
|
|
46
42
|
<form class="dropzone" id="dropzone-custom" action="." autocomplete="off" novalidate>
|
|
47
43
|
<div class="fallback">
|
|
48
44
|
<input name="file" type="file" />
|
|
@@ -53,8 +49,6 @@ description: Dropzone is a simple JavaScript library that helps you add file dra
|
|
|
53
49
|
</div>
|
|
54
50
|
</form>
|
|
55
51
|
|
|
56
|
-
<link href="$TABLER_CDN/dist/libs/dropzone/dist/dropzone.css" rel="stylesheet" />
|
|
57
|
-
<script src="$TABLER_CDN/dist/libs/dropzone/dist/dropzone-min.js"></script>
|
|
58
52
|
<script>
|
|
59
53
|
document.addEventListener("DOMContentLoaded", function() {
|
|
60
54
|
new Dropzone("#dropzone-custom")
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Empty states
|
|
3
|
-
|
|
3
|
+
summary: Empty states or blank pages are commonly used as placeholders for first-use, empty data or error screens. Their aim is to engage users when there is no content to display and that is why their design is extremely important from the point of view of the user experience of your website or app.
|
|
4
|
+
description: Engage users in empty or error screens.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Default markup
|
|
7
8
|
|
|
8
9
|
Use the default empty state to engage users in the critical moments of their experience with your website or app. A good empty state screen should let users know what is happening and what they should do next as well as encourage them to take action.
|
|
9
10
|
|
|
10
|
-
```html
|
|
11
|
+
```html example height="300px"
|
|
11
12
|
<div class="empty">
|
|
12
13
|
<div class="empty-icon">
|
|
13
14
|
<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">
|
|
@@ -39,9 +40,10 @@ Use the default empty state to engage users in the critical moments of their exp
|
|
|
39
40
|
|
|
40
41
|
Make your empty state screen more attractive and engaging by adding an illustration. Thanks to a more personalized design, you will improve your brand image and make your website or app more user friendly.
|
|
41
42
|
|
|
42
|
-
```html
|
|
43
|
+
```html example height="300px"
|
|
43
44
|
<div class="empty">
|
|
44
|
-
<div class="empty-img"
|
|
45
|
+
<div class="empty-img">
|
|
46
|
+
<img src="..." height="128" alt="" />
|
|
45
47
|
</div>
|
|
46
48
|
<p class="empty-title">Invoices are managed from here</p>
|
|
47
49
|
<p class="empty-subtitle text-secondary">
|
|
@@ -94,7 +96,7 @@ Instead of adding an icon or illustration you can simply give the text:
|
|
|
94
96
|
</p>
|
|
95
97
|
<div class="empty-action">
|
|
96
98
|
<a href="#" class="btn btn-primary">
|
|
97
|
-
<!-- SVG icon from http://tabler
|
|
99
|
+
<!-- SVG icon from http://tabler.io/icons/icon/arrow-left -->
|
|
98
100
|
<svg>...</svg>
|
|
99
101
|
Take me home
|
|
100
102
|
</a>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Icons
|
|
3
|
-
|
|
3
|
+
summary: Use one of over 3000 icons created specifically for Tabler and make your dashboard look even more attractive. All icons are under MIT license, so you can use them without any problem both in private and commercial projects.
|
|
4
4
|
banner: icons
|
|
5
|
+
description: Enhance dashboards with custom icons.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Base icon
|
|
8
9
|
|
|
9
|
-
```html
|
|
10
|
+
```html example centered separated
|
|
10
11
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11
12
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
12
13
|
<path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"></path>
|
|
@@ -39,7 +40,7 @@ banner: icons
|
|
|
39
40
|
|
|
40
41
|
## Filled icons
|
|
41
42
|
|
|
42
|
-
```html
|
|
43
|
+
```html example centered separated
|
|
43
44
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
44
45
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
45
46
|
<path d="M6.979 3.074a6 6 0 0 1 4.988 1.425l.037 .033l.034 -.03a6 6 0 0 1 4.733 -1.44l.246 .036a6 6 0 0 1 3.364 10.008l-.18 .185l-.048 .041l-7.45 7.379a1 1 0 0 1 -1.313 .082l-.094 -.082l-7.493 -7.422a6 6 0 0 1 3.176 -10.215z" stroke-width="0" fill="currentColor"></path>
|
|
@@ -63,7 +64,7 @@ banner: icons
|
|
|
63
64
|
|
|
64
65
|
## Icon colors
|
|
65
66
|
|
|
66
|
-
```html example
|
|
67
|
+
```html example centered separated
|
|
67
68
|
<span class="text-red">
|
|
68
69
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-heart-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
69
70
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
@@ -109,12 +110,12 @@ banner: icons
|
|
|
109
110
|
```
|
|
110
111
|
|
|
111
112
|
```html
|
|
112
|
-
<!-- SVG icon from http://tabler
|
|
113
|
+
<!-- SVG icon from http://tabler.io/icons/icon/heart -->
|
|
113
114
|
<svg class="icon-pulse" ...>...</svg>
|
|
114
115
|
|
|
115
|
-
<!-- SVG icon from http://tabler
|
|
116
|
+
<!-- SVG icon from http://tabler.io/icons/icon/bell -->
|
|
116
117
|
<svg class="icon-tada" ...>...</svg>
|
|
117
118
|
|
|
118
|
-
<!-- SVG icon from http://tabler
|
|
119
|
+
<!-- SVG icon from http://tabler.io/icons/icon/rotate-clockwise -->
|
|
119
120
|
<svg class="icon-rotate" ...>...</svg>
|
|
120
121
|
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Components
|
|
3
|
+
order: 4
|
|
4
|
+
description: Various components to enhance UI.
|
|
5
|
+
summary: Tabler UI includes a variety of components to help you build web applications that are both functional and visually appealing. From buttons and cards to modals and navigation, these components provide a wide range of features to enhance your site.
|
|
6
|
+
---
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Inline player
|
|
3
3
|
libs: plyr
|
|
4
|
-
|
|
4
|
+
summary: A simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports modern browsers.
|
|
5
|
+
description: Lightweight media player for websites.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Sample demo
|
|
8
9
|
|
|
9
|
-
```html example
|
|
10
|
+
```html example vendors height="500px" libs="plyr"
|
|
10
11
|
<div id="player-youtube" data-plyr-provider="youtube" data-plyr-embed-id="dQw4w9WgXcQ"></div>
|
|
11
12
|
|
|
12
13
|
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
@@ -19,7 +20,7 @@ description: A simple, lightweight, accessible and customizable HTML5, YouTube a
|
|
|
19
20
|
|
|
20
21
|
## Vimeo file
|
|
21
22
|
|
|
22
|
-
```html example
|
|
23
|
+
```html example vendors height="500px" libs="plyr"
|
|
23
24
|
<div id="player-vimeo" data-plyr-provider="vimeo" data-plyr-embed-id="515937365"></div>
|
|
24
25
|
|
|
25
26
|
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Modals
|
|
3
|
-
|
|
3
|
+
summary: Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
|
|
4
|
+
description: Dialogs for notifications and content.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Default markup
|
|
7
8
|
|
|
8
|
-
```html example
|
|
9
|
+
```html example centered height="30rem"
|
|
9
10
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
10
11
|
Launch demo modal
|
|
11
12
|
</button>
|
|
@@ -31,7 +32,7 @@ description: Use Bootstrap’s JavaScript modal plugin to add dialogs to your si
|
|
|
31
32
|
|
|
32
33
|
## Prompt and alert
|
|
33
34
|
|
|
34
|
-
```html example
|
|
35
|
+
```html example centered height="30rem"
|
|
35
36
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
36
37
|
Launch alert modal
|
|
37
38
|
</button>
|
|
@@ -53,12 +54,16 @@ description: Use Bootstrap’s JavaScript modal plugin to add dialogs to your si
|
|
|
53
54
|
<div class="modal-footer">
|
|
54
55
|
<div class="w-100">
|
|
55
56
|
<div class="row">
|
|
56
|
-
<div class="col"
|
|
57
|
+
<div class="col">
|
|
58
|
+
<a href="#" class="btn w-100" data-bs-dismiss="modal">
|
|
57
59
|
Cancel
|
|
58
|
-
</a
|
|
59
|
-
|
|
60
|
+
</a>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col">
|
|
63
|
+
<a href="#" class="btn btn-danger w-100" data-bs-dismiss="modal">
|
|
60
64
|
Delete 84 items
|
|
61
|
-
</a
|
|
65
|
+
</a>
|
|
66
|
+
</div>
|
|
62
67
|
</div>
|
|
63
68
|
</div>
|
|
64
69
|
</div>
|
|
@@ -67,7 +72,7 @@ description: Use Bootstrap’s JavaScript modal plugin to add dialogs to your si
|
|
|
67
72
|
</div>
|
|
68
73
|
```
|
|
69
74
|
|
|
70
|
-
```html example
|
|
75
|
+
```html example centered height="30rem"
|
|
71
76
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
72
77
|
Launch demo modal
|
|
73
78
|
</button>
|
|
@@ -109,7 +114,7 @@ description: Use Bootstrap’s JavaScript modal plugin to add dialogs to your si
|
|
|
109
114
|
|
|
110
115
|
## Modal with form
|
|
111
116
|
|
|
112
|
-
```html example
|
|
117
|
+
```html example centered height="30rem"
|
|
113
118
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
114
119
|
Launch modal with form
|
|
115
120
|
</button>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Placeholder
|
|
3
|
-
|
|
3
|
+
summary: Placeholder is used to reserve space for content that soon will appear in a layout.
|
|
4
|
+
description: Reserve space for upcoming content.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Placeholder line
|
|
7
8
|
|
|
8
9
|
Placeholder lines can contain have lines of text. Their length is different and depends on the `col-` class.
|
|
9
10
|
|
|
10
|
-
```html
|
|
11
|
+
```html example columns={1}
|
|
11
12
|
<div class="placeholder col-9"></div>
|
|
12
13
|
<div class="placeholder col-11"></div>
|
|
13
14
|
<div class="placeholder col-10"></div>
|
|
@@ -16,7 +17,7 @@ Placeholder lines can contain have lines of text. Their length is different and
|
|
|
16
17
|
|
|
17
18
|
However, it may be useful, however, to specify the full width in order to fit the content more effectively.
|
|
18
19
|
|
|
19
|
-
```html
|
|
20
|
+
```html example columns={1}
|
|
20
21
|
<div class="placeholder col-12"></div>
|
|
21
22
|
<div class="placeholder col-12"></div>
|
|
22
23
|
<div class="placeholder col-12"></div>
|
|
@@ -25,7 +26,7 @@ However, it may be useful, however, to specify the full width in order to fit th
|
|
|
25
26
|
|
|
26
27
|
You can also move the lines to right or to center:
|
|
27
28
|
|
|
28
|
-
```html
|
|
29
|
+
```html example columns={1}
|
|
29
30
|
<div class="text-end">
|
|
30
31
|
<div class="placeholder col-11"></div>
|
|
31
32
|
<div class="placeholder col-10"></div>
|
|
@@ -42,7 +43,7 @@ You can also move the lines to right or to center:
|
|
|
42
43
|
|
|
43
44
|
A placeholder can contain also a header element looks like header:
|
|
44
45
|
|
|
45
|
-
```html
|
|
46
|
+
```html example columns={1}
|
|
46
47
|
<div class="placeholder col-9 mb-3"></div>
|
|
47
48
|
<div class="placeholder placeholder-xs col-10"></div>
|
|
48
49
|
<div class="placeholder placeholder-xs col-11"></div>
|
|
@@ -52,7 +53,7 @@ A placeholder can contain also a header element looks like header:
|
|
|
52
53
|
|
|
53
54
|
You can make your placeholder item look like an avatar.
|
|
54
55
|
|
|
55
|
-
```html
|
|
56
|
+
```html example columns={1}
|
|
56
57
|
<div class="row">
|
|
57
58
|
<div class="col-auto">
|
|
58
59
|
<div class="avatar placeholder"></div>
|
|
@@ -66,7 +67,7 @@ You can make your placeholder item look like an avatar.
|
|
|
66
67
|
|
|
67
68
|
The size of avatars is exactly the same as a regular avatar.
|
|
68
69
|
|
|
69
|
-
```html
|
|
70
|
+
```html example centered separated
|
|
70
71
|
<div class="avatar avatar-xl placeholder"></div>
|
|
71
72
|
<div class="avatar avatar-lg placeholder"></div>
|
|
72
73
|
<div class="avatar avatar-md placeholder"></div>
|
|
@@ -81,7 +82,7 @@ You can use a placeholder, which will look like a picture. You can use the `rati
|
|
|
81
82
|
|
|
82
83
|
You can also use the `ratio` component, and get the image in the right proportions.
|
|
83
84
|
|
|
84
|
-
```html
|
|
85
|
+
```html example columns={1} height={500} scrollable
|
|
85
86
|
<div class="ratio ratio-1x1 placeholder">
|
|
86
87
|
<div class="placeholder-image"></div>
|
|
87
88
|
</div>
|
|
@@ -129,7 +130,7 @@ By default, the `placeholder` uses `currentColor`. This can be overridden with a
|
|
|
129
130
|
|
|
130
131
|
The size of `.placeholders` are based on the typographic style of the parent element. Customize them with sizing modifiers: `.placeholder-lg`, `.placeholder-sm`, or `.placeholder-xs`.
|
|
131
132
|
|
|
132
|
-
```html
|
|
133
|
+
```html example columns={1}
|
|
133
134
|
<span class="placeholder col-12 placeholder-lg"></span>
|
|
134
135
|
<span class="placeholder col-12"></span>
|
|
135
136
|
<span class="placeholder col-12 placeholder-sm"></span>
|
|
@@ -140,7 +141,7 @@ The size of `.placeholders` are based on the typographic style of the parent ele
|
|
|
140
141
|
|
|
141
142
|
Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better convey the perception of something being actively loaded.
|
|
142
143
|
|
|
143
|
-
```html
|
|
144
|
+
```html example columns={1}
|
|
144
145
|
<p class="placeholder-glow">
|
|
145
146
|
<span class="placeholder col-12"></span>
|
|
146
147
|
</p>
|
|
@@ -153,7 +154,7 @@ Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better c
|
|
|
153
154
|
|
|
154
155
|
See in the following examples how else you can use the placeholder component
|
|
155
156
|
|
|
156
|
-
```html
|
|
157
|
+
```html example columns={1} height={1000} separated vertical scrollable
|
|
157
158
|
<div class="card placeholder-glow">
|
|
158
159
|
<div class="ratio ratio-21x9 card-img-top placeholder"></div>
|
|
159
160
|
<div class="card-body">
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Popovers
|
|
3
|
-
|
|
3
|
+
summary: Popovers are used to provide additional information on elements where a simple tooltip is not sufficient.
|
|
4
4
|
bootstrapLink: components/popovers
|
|
5
|
+
description: Provide extra information with popovers.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
8
9
|
|
|
9
10
|
To create a default popover use:
|
|
10
11
|
|
|
11
|
-
```html
|
|
12
|
+
```html example centered
|
|
12
13
|
<button type="button" class="btn" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
|
|
13
14
|
```
|
|
14
15
|
|
|
@@ -25,16 +26,16 @@ Four options are available: `top`, `right`, `bottom`, and `left` aligned. Direct
|
|
|
25
26
|
|
|
26
27
|
```html
|
|
27
28
|
<button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content="Top popover">
|
|
28
|
-
Popover on top
|
|
29
|
+
Popover on top
|
|
29
30
|
</button>
|
|
30
31
|
<button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="right" data-bs-content="Right popover">
|
|
31
|
-
Popover on right
|
|
32
|
+
Popover on right
|
|
32
33
|
</button>
|
|
33
34
|
<button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Bottom popover">
|
|
34
|
-
Popover on bottom
|
|
35
|
+
Popover on bottom
|
|
35
36
|
</button>
|
|
36
37
|
<button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="left" data-bs-content="Left popover">
|
|
37
|
-
Popover on left
|
|
38
|
+
Popover on left
|
|
38
39
|
</button>
|
|
39
40
|
```
|
|
40
41
|
|
|
@@ -47,9 +48,7 @@ Popover can be triggered `manual`, with a `click` and on `focus` and on `hover`.
|
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
```html
|
|
50
|
-
<button type="button" class="btn btn-primary" data-bs-trigger="hover" data-bs-toggle="popover"
|
|
51
|
-
title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?"
|
|
52
|
-
>
|
|
51
|
+
<button type="button" class="btn btn-primary" data-bs-trigger="hover" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">
|
|
53
52
|
Hover to toggle popover
|
|
54
53
|
</button>
|
|
55
54
|
```
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Progress bars
|
|
3
|
-
|
|
3
|
+
summary: Progress bars are used to provide feedback on an action status and inform users of the current progress. Although seemingly small interface elements, they are extremely hepful in managing users' expectations and preventing them from abandoning a process they have initiated.
|
|
4
4
|
bootstrapLink: components/progress
|
|
5
|
+
description: Track and display progress visually.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
@@ -26,22 +27,16 @@ To create a default progress bar, add a `.progress` class to a `<div>` element.
|
|
|
26
27
|
|
|
27
28
|
Using Bootstrap’s typical naming structure, you can create a standard progress bar or scale it up or down to different sizes based on what’s needed.
|
|
28
29
|
|
|
29
|
-
```html
|
|
30
|
-
<div class="progress progress-sm">
|
|
31
|
-
<div class="progress-bar" style="width: 57%" role="progressbar" aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" aria-label="57% Complete">
|
|
32
|
-
<span class="visually-hidden">57% Complete</span>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
30
|
+
```html
|
|
31
|
+
<div class="progress progress-sm">...</div>
|
|
35
32
|
```
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
Look at the example below to see how it works:
|
|
38
35
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
<div class="progress-bar" style="width: 75%" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" aria-label="75% Complete">
|
|
44
|
-
<span class="visually-hidden">75% Complete</span>
|
|
36
|
+
```html example columns={1} centered
|
|
37
|
+
<div class="progress progress-sm">
|
|
38
|
+
<div class="progress-bar" style="width: 57%" role="progressbar" aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" aria-label="57% Complete">
|
|
39
|
+
<span class="visually-hidden">57% Complete</span>
|
|
45
40
|
</div>
|
|
46
41
|
</div>
|
|
47
42
|
```
|
|
@@ -50,7 +45,7 @@ Remove the displayed value by adding the `.visually-hidden` class.
|
|
|
50
45
|
|
|
51
46
|
You can create a progress bar which shows indeterminate progress by adding `.progress-bar-indeterminate` to the `.progress-bar` element.
|
|
52
47
|
|
|
53
|
-
```html
|
|
48
|
+
```html example columns={1} centered
|
|
54
49
|
<div class="progress progress-sm">
|
|
55
50
|
<div class="progress-bar progress-bar-indeterminate"></div>
|
|
56
51
|
</div>
|
|
@@ -58,17 +53,25 @@ You can create a progress bar which shows indeterminate progress by adding `.pro
|
|
|
58
53
|
|
|
59
54
|
## Native progress element
|
|
60
55
|
|
|
61
|
-
You can also use native HTML5 `<progress>` element.
|
|
56
|
+
You can also use native HTML5 `<progress>` element. It is a great way to create a progress bar without the need for additional HTML elements.
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<progress class="progress progress-sm" value="15" max="100" />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This is how it looks like:
|
|
62
63
|
|
|
63
|
-
```html
|
|
64
|
+
```html example columns={1} centered
|
|
64
65
|
<progress class="progress progress-sm" value="15" max="100" />
|
|
65
66
|
```
|
|
66
67
|
|
|
67
68
|
## Progress color
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
You can change the color of the progress bar by adding a color class to the `.progress-bar` element. You can use the color classes like `.bg-primary`, `.bg-success`, etc. to change the color of the progress bar.
|
|
71
|
+
|
|
72
|
+
Full list of available colors can be found [here](/docs/ui/base/colors).
|
|
70
73
|
|
|
71
|
-
```html
|
|
74
|
+
```html example columns={1} centered separated
|
|
72
75
|
<div class="progress">
|
|
73
76
|
<div class="progress-bar bg-red" style="width: 24%" role="progressbar" aria-valuenow="24" aria-valuemin="0" aria-valuemax="100" aria-label="24% Complete">
|
|
74
77
|
<span class="visually-hidden">24% Complete</span>
|
|
@@ -90,3 +93,101 @@ Customize the color of the progress bar to suit your design. Click [here](/docs/
|
|
|
90
93
|
</div>
|
|
91
94
|
</div>
|
|
92
95
|
```
|
|
96
|
+
|
|
97
|
+
## Multiple progress bars
|
|
98
|
+
|
|
99
|
+
You can stack multiple progress bars on top of each other to create a visually appealing design. This can be done by adding multiple `.progress` elements inside a `.progress-stacked` container.
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div class="progress-stacked">
|
|
103
|
+
<div class="progress">...</div>
|
|
104
|
+
</div>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This is how it looks like:
|
|
108
|
+
|
|
109
|
+
```html example columns={2} centered
|
|
110
|
+
<div class="progress-stacked">
|
|
111
|
+
<div class="progress" style="width: 15%">
|
|
112
|
+
<div class="progress-bar"></div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="progress" style="width: 30%">
|
|
115
|
+
<div class="progress-bar bg-success"></div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="progress" style="width: 20%">
|
|
118
|
+
<div class="progress-bar bg-info"></div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Striped progress
|
|
124
|
+
|
|
125
|
+
You can create a striped progress bar by adding the `.progress-bar-striped` class to the `.progress-bar` element.
|
|
126
|
+
|
|
127
|
+
```html
|
|
128
|
+
<div class="progress">
|
|
129
|
+
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 60%"></div>
|
|
130
|
+
</div>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
This is how it looks like:
|
|
134
|
+
|
|
135
|
+
```html example columns={1} centered separated
|
|
136
|
+
<div class="progress">
|
|
137
|
+
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 60%"></div>
|
|
138
|
+
</div>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Progress background
|
|
142
|
+
|
|
143
|
+
By using a progress bar component as a background element, designers can create a dynamic and engaging visual experience for users. For example, the progress bar could be used to represent the completion of a long-term goal or project, such as a fundraising campaign or construction project. As users interact with the page, the progress bar could gradually fill up, creating a sense of momentum and progress.
|
|
144
|
+
|
|
145
|
+
```html
|
|
146
|
+
<div class="progressbg">
|
|
147
|
+
<div class="progress progressbg-progress">
|
|
148
|
+
<div class="progress-bar bg-primary-lt" style="width: 65%"></div>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="progressbg-text">Poland</div>
|
|
151
|
+
<div class="progressbg-value">65%</div>
|
|
152
|
+
</div>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Thanks to this you can create a nice looking statistics section:
|
|
156
|
+
|
|
157
|
+
```html example vertical separated centered columns={1} plugins="flags" height="20rem"
|
|
158
|
+
<div class="progressbg">
|
|
159
|
+
<div class="progress progressbg-progress">
|
|
160
|
+
<div class="progress-bar bg-primary-lt" style="width: 65%"></div>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="progressbg-text">Poland</div>
|
|
163
|
+
<div class="progressbg-value">65%</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="progressbg">
|
|
166
|
+
<div class="progress progressbg-progress">
|
|
167
|
+
<div class="progress-bar bg-primary-lt" style="width: 35%"></div>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="progressbg-text">Germany</div>
|
|
170
|
+
<div class="progressbg-value">35%</div>
|
|
171
|
+
</div>
|
|
172
|
+
<div class="progressbg">
|
|
173
|
+
<div class="progress progressbg-progress">
|
|
174
|
+
<div class="progress-bar bg-primary-lt" style="width: 28%"></div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="progressbg-text">United Stated</div>
|
|
177
|
+
<div class="progressbg-value">28%</div>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="progressbg">
|
|
180
|
+
<div class="progress progressbg-progress">
|
|
181
|
+
<div class="progress-bar bg-primary-lt" style="width: 20%"></div>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="progressbg-text">United Kingdom</div>
|
|
184
|
+
<div class="progressbg-value">20%</div>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="progressbg">
|
|
187
|
+
<div class="progress progressbg-progress">
|
|
188
|
+
<div class="progress-bar bg-primary-lt" style="width: 15%"></div>
|
|
189
|
+
</div>
|
|
190
|
+
<div class="progressbg-text">France</div>
|
|
191
|
+
<div class="progressbg-value">15%</div>
|
|
192
|
+
</div>
|
|
193
|
+
```
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Range slider
|
|
3
3
|
libs: nouislider
|
|
4
|
+
description: Adjust values with range sliders.
|
|
5
|
+
summary: Range sliders allow users to select a range of values by adjusting two handles along a track, providing an intuitive and space-efficient input method.
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
To be able to use the range slider in your application you will need to install the nouislider dependency with `npm install nouislider`.
|
|
@@ -9,9 +11,22 @@ All options and features can be found [**here**](https://refreshless.com/nouisli
|
|
|
9
11
|
|
|
10
12
|
## Basic range slider
|
|
11
13
|
|
|
12
|
-
```html
|
|
13
|
-
<div
|
|
14
|
-
|
|
14
|
+
```html example centered vendors libs="nouislider" columns={1}
|
|
15
|
+
<div id="range-simple"></div>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
19
|
+
window.noUiSlider && (noUiSlider.create(document.getElementById('range-simple'), {
|
|
20
|
+
start: 20,
|
|
21
|
+
connect: [true, false],
|
|
22
|
+
step: 10,
|
|
23
|
+
range: {
|
|
24
|
+
min: 0,
|
|
25
|
+
max: 100
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
15
30
|
```
|
|
16
31
|
|
|
17
32
|
That's only the basic features and options of range slider. More possibilities can be found [**here**](https://refreshless.com/nouislider/).
|