@tabler/core 1.0.0-beta22 → 1.0.0-beta24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- 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-marketing.css +4751 -0
- package/dist/css/tabler-marketing.min.css +9 -0
- package/dist/css/tabler-marketing.rtl.css +4751 -0
- package/dist/css/tabler-marketing.rtl.min.css +9 -0
- 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 +25 -19
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +25 -19
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +1300 -1501
- package/dist/css/tabler.min.css +4 -4
- package/dist/css/tabler.rtl.css +1300 -1501
- 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/contents.mdx +77 -0
- package/docs/illustrations/introduction/customization.mdx +431 -0
- package/docs/illustrations/introduction/index.mdx +5 -0
- package/docs/illustrations/introduction/license.mdx +22 -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 +45 -120
- package/docs/ui/components/autosize.mdx +12 -3
- package/docs/ui/components/avatars.mdx +7 -4
- package/docs/ui/components/badges.mdx +66 -75
- 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 +15 -24
- package/docs/ui/components/countup.mdx +74 -45
- 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 +39 -14
- package/docs/ui/components/empty.mdx +7 -5
- package/docs/ui/components/icons.mdx +53 -14
- package/docs/ui/components/index.mdx +6 -0
- package/docs/ui/components/inline-player.mdx +31 -4
- package/docs/ui/components/modals.mdx +53 -18
- package/docs/ui/components/offcanvas.mdx +55 -0
- package/docs/ui/components/placeholder.mdx +25 -25
- package/docs/ui/components/popover.mdx +8 -9
- package/docs/ui/components/progress.mdx +120 -19
- package/docs/ui/components/range-slider.mdx +17 -3
- package/docs/ui/components/ribbons.mdx +13 -12
- package/docs/ui/components/spinners.mdx +31 -10
- package/docs/ui/components/statuses.mdx +50 -13
- package/docs/ui/components/steps.mdx +62 -19
- 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 -3
- 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/components/vector-maps.mdx +170 -0
- package/docs/ui/forms/form-color-check.mdx +36 -11
- package/docs/ui/forms/form-elements.mdx +32 -17
- 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 +10 -2
- package/docs/ui/getting-started/customize.mdx +5 -4
- package/docs/ui/getting-started/download.mdx +3 -5
- package/docs/ui/getting-started/faq.mdx +3 -1
- package/docs/ui/getting-started/how-to-contribute.mdx +96 -0
- package/docs/ui/getting-started/index.mdx +4 -28
- package/docs/ui/getting-started/installation.mdx +67 -0
- package/docs/ui/getting-started/license.mdx +30 -0
- package/docs/ui/index.mdx +8 -0
- package/docs/ui/layout/index.mdx +6 -0
- package/docs/ui/layout/navbars.mdx +106 -0
- package/docs/ui/layout/navs-tabls.mdx +187 -0
- package/docs/ui/layout/page-headers.mdx +16 -9
- package/docs/ui/layout/page-layouts.mdx +10 -6
- 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 +69 -49
- package/docs/ui/utilities/cursors.mdx +22 -51
- package/docs/ui/utilities/index.mdx +5 -0
- package/docs/ui/utilities/interactions.mdx +10 -5
- package/docs/ui/utilities/margins.mdx +234 -0
- package/docs/ui/utilities/vertical-align.mdx +66 -0
- package/docs/ui/utilities/visually-hidden.mdx +12 -0
- package/package.json +9 -6
- 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/_utilities-marketing.scss +209 -0
- package/src/scss/_utilities.scss +5 -9
- package/src/scss/_variables-marketing.scss +0 -0
- package/src/scss/_variables.scss +57 -22
- package/src/scss/layout/_animations.scss +2 -1
- package/src/scss/layout/_navbar.scss +0 -1
- package/src/scss/marketing/_browser.scss +67 -0
- package/src/scss/marketing/_core.scss +8 -0
- package/src/scss/marketing/_filters.scss +0 -0
- package/src/scss/marketing/_hero.scss +69 -0
- package/src/scss/marketing/_pricing.scss +111 -0
- package/src/scss/marketing/_sections.scss +124 -0
- package/src/scss/marketing/_shape.scss +31 -0
- package/src/scss/mixins/_mixins.scss +2 -2
- package/src/scss/tabler-marketing.scss +13 -0
- package/src/scss/tabler-socials.scss +2 -0
- package/src/scss/tabler-vendors.scss +1 -0
- package/src/scss/ui/_buttons.scss +8 -7
- package/src/scss/ui/_forms.scss +4 -0
- package/src/scss/ui/_images.scss +4 -0
- package/src/scss/ui/_lists.scss +11 -15
- 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/utils/_colors.scss +1 -1
- package/src/scss/vendor/_dropzone.scss +3 -3
- package/src/scss/vendor/_tom-select.scss +1 -0
- package/src/scss/vendor/_typed.scss +4 -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,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>
|
|
@@ -50,9 +51,15 @@ A placeholder can contain also a header element looks like header:
|
|
|
50
51
|
|
|
51
52
|
## Placeholder avatar
|
|
52
53
|
|
|
53
|
-
You can
|
|
54
|
+
You can use a placeholder, which will look like an avatar. You can use the `avatar` component, and get the image in the right proportions.
|
|
54
55
|
|
|
55
|
-
```html
|
|
56
|
+
```html
|
|
57
|
+
<div class="avatar placeholder"></div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Look at the example below to see how the avatar placeholder looks like.
|
|
61
|
+
|
|
62
|
+
```html example columns={1} centered
|
|
56
63
|
<div class="row">
|
|
57
64
|
<div class="col-auto">
|
|
58
65
|
<div class="avatar placeholder"></div>
|
|
@@ -64,9 +71,9 @@ You can make your placeholder item look like an avatar.
|
|
|
64
71
|
</div>
|
|
65
72
|
```
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
You can also use the `avatar` component with different sizes. Look at the example below to see how the avatar placeholder looks like.
|
|
68
75
|
|
|
69
|
-
```html
|
|
76
|
+
```html example centered separated
|
|
70
77
|
<div class="avatar avatar-xl placeholder"></div>
|
|
71
78
|
<div class="avatar avatar-lg placeholder"></div>
|
|
72
79
|
<div class="avatar avatar-md placeholder"></div>
|
|
@@ -81,7 +88,7 @@ You can use a placeholder, which will look like a picture. You can use the `rati
|
|
|
81
88
|
|
|
82
89
|
You can also use the `ratio` component, and get the image in the right proportions.
|
|
83
90
|
|
|
84
|
-
```html
|
|
91
|
+
```html example columns={1} height={500} scrollable separated vertical
|
|
85
92
|
<div class="ratio ratio-1x1 placeholder">
|
|
86
93
|
<div class="placeholder-image"></div>
|
|
87
94
|
</div>
|
|
@@ -98,23 +105,16 @@ You can also use the `ratio` component, and get the image in the right proportio
|
|
|
98
105
|
|
|
99
106
|
## Placeholder color
|
|
100
107
|
|
|
101
|
-
By default, the `placeholder` uses `currentColor`. This can be overridden with a custom color or utility class.
|
|
108
|
+
By default, the `placeholder` uses `currentColor`. This can be overridden with a custom color or utility class. Full color classes are available for background colors.
|
|
102
109
|
|
|
103
|
-
```html
|
|
104
|
-
<span class="placeholder col-12"></span>
|
|
105
|
-
<span class="placeholder col-12 bg-primary"></span>
|
|
106
|
-
<span class="placeholder col-12 bg-secondary"></span>
|
|
107
|
-
<span class="placeholder col-12 bg-success"></span>
|
|
108
|
-
<span class="placeholder col-12 bg-danger"></span>
|
|
109
|
-
<span class="placeholder col-12 bg-warning"></span>
|
|
110
|
-
<span class="placeholder col-12 bg-info"></span>
|
|
111
|
-
<span class="placeholder col-12 bg-light"></span>
|
|
110
|
+
```html
|
|
112
111
|
<span class="placeholder col-12 bg-dark"></span>
|
|
113
112
|
```
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
<span class="placeholder col-12"></span>
|
|
114
|
+
Look at the example below to see how the color affects the placeholder.
|
|
117
115
|
|
|
116
|
+
```html example columns={1} height={240}
|
|
117
|
+
<span class="placeholder col-12"></span>
|
|
118
118
|
<span class="placeholder col-12 bg-primary"></span>
|
|
119
119
|
<span class="placeholder col-12 bg-secondary"></span>
|
|
120
120
|
<span class="placeholder col-12 bg-success"></span>
|
|
@@ -129,7 +129,7 @@ By default, the `placeholder` uses `currentColor`. This can be overridden with a
|
|
|
129
129
|
|
|
130
130
|
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
131
|
|
|
132
|
-
```html
|
|
132
|
+
```html example columns={1}
|
|
133
133
|
<span class="placeholder col-12 placeholder-lg"></span>
|
|
134
134
|
<span class="placeholder col-12"></span>
|
|
135
135
|
<span class="placeholder col-12 placeholder-sm"></span>
|
|
@@ -140,7 +140,7 @@ The size of `.placeholders` are based on the typographic style of the parent ele
|
|
|
140
140
|
|
|
141
141
|
Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better convey the perception of something being actively loaded.
|
|
142
142
|
|
|
143
|
-
```html
|
|
143
|
+
```html example columns={1}
|
|
144
144
|
<p class="placeholder-glow">
|
|
145
145
|
<span class="placeholder col-12"></span>
|
|
146
146
|
</p>
|
|
@@ -153,7 +153,7 @@ Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better c
|
|
|
153
153
|
|
|
154
154
|
See in the following examples how else you can use the placeholder component
|
|
155
155
|
|
|
156
|
-
```html
|
|
156
|
+
```html example columns={1} height={1000} separated vertical scrollable background="surface"
|
|
157
157
|
<div class="card placeholder-glow">
|
|
158
158
|
<div class="ratio ratio-21x9 card-img-top placeholder"></div>
|
|
159
159
|
<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,21 @@ 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
|
+
<script>
|
|
17
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
18
|
+
window.noUiSlider && (noUiSlider.create(document.getElementById('range-simple'), {
|
|
19
|
+
start: 20,
|
|
20
|
+
connect: [true, false],
|
|
21
|
+
step: 10,
|
|
22
|
+
range: {
|
|
23
|
+
min: 0,
|
|
24
|
+
max: 100
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
15
29
|
```
|
|
16
30
|
|
|
17
31
|
That's only the basic features and options of range slider. More possibilities can be found [**here**](https://refreshless.com/nouislider/).
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Ribbons
|
|
3
|
-
|
|
3
|
+
summary: Ribbons are graphical elements which attract users' attention to a given element of an interface and make it stand out.
|
|
4
|
+
description: Highlight elements with graphical ribbons.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Default markup
|
|
7
8
|
|
|
8
9
|
Use the `ribbon` class to add the default ribbon to any section of your interface.
|
|
9
10
|
|
|
10
|
-
```html example columns={1} centered
|
|
11
|
+
```html example columns={1} centered background="base"
|
|
11
12
|
<div class="card">
|
|
12
13
|
<div class="card-body" style="height: 5rem">
|
|
13
14
|
</div>
|
|
@@ -25,7 +26,7 @@ Use the `ribbon` class to add the default ribbon to any section of your interfac
|
|
|
25
26
|
<div class="card-body">
|
|
26
27
|
</div>
|
|
27
28
|
<div class="ribbon">
|
|
28
|
-
<!-- SVG icon from http://tabler
|
|
29
|
+
<!-- SVG icon from http://tabler.io/icons/icon/star -->
|
|
29
30
|
<svg>...</svg>
|
|
30
31
|
</div>
|
|
31
32
|
</div>
|
|
@@ -42,7 +43,7 @@ You can change the position of a ribbon by adding one of the following classes t
|
|
|
42
43
|
|
|
43
44
|
Using multiple classes at once will give you more position options. For example, the following class: `.ribbon.ribbon-top.ribbon-left` will move the ribbon to the top left corner.
|
|
44
45
|
|
|
45
|
-
```html example columns={1} centered
|
|
46
|
+
```html example columns={1} centered background="base"
|
|
46
47
|
<div class="card">
|
|
47
48
|
<div class="card-body" style="height: 5rem">
|
|
48
49
|
</div>
|
|
@@ -60,7 +61,7 @@ Using multiple classes at once will give you more position options. For example,
|
|
|
60
61
|
<div class="card-body">
|
|
61
62
|
</div>
|
|
62
63
|
<div class="ribbon ribbon-top ribbon-start">
|
|
63
|
-
<!-- SVG icon from http://tabler
|
|
64
|
+
<!-- SVG icon from http://tabler.io/icons/icon/star -->
|
|
64
65
|
<svg>...</svg>
|
|
65
66
|
</div>
|
|
66
67
|
</div>
|
|
@@ -68,9 +69,9 @@ Using multiple classes at once will give you more position options. For example,
|
|
|
68
69
|
|
|
69
70
|
## Ribbon color
|
|
70
71
|
|
|
71
|
-
Customize the ribbon's background color. You can click [here](/docs/ui/colors) to see the list of available colors.
|
|
72
|
+
Customize the ribbon's background color. You can click [here](/docs/ui/base/colors) to see the list of available colors.
|
|
72
73
|
|
|
73
|
-
```html example columns={1} centered
|
|
74
|
+
```html example columns={1} centered background="base"
|
|
74
75
|
<div class="card">
|
|
75
76
|
<div class="card-body" style="height: 5rem">
|
|
76
77
|
</div>
|
|
@@ -88,7 +89,7 @@ Customize the ribbon's background color. You can click [here](/docs/ui/colors) t
|
|
|
88
89
|
<div class="card-body">
|
|
89
90
|
</div>
|
|
90
91
|
<div class="ribbon bg-red">
|
|
91
|
-
<!-- SVG icon from http://tabler
|
|
92
|
+
<!-- SVG icon from http://tabler.io/icons/icon/star -->
|
|
92
93
|
<svg>...</svg>
|
|
93
94
|
</div>
|
|
94
95
|
</div>
|
|
@@ -98,7 +99,7 @@ Customize the ribbon's background color. You can click [here](/docs/ui/colors) t
|
|
|
98
99
|
|
|
99
100
|
Add your own text to a ribbon to display any additional information and make it easy to spot for users.
|
|
100
101
|
|
|
101
|
-
```html example columns={1} centered
|
|
102
|
+
```html example columns={1} centered background="base"
|
|
102
103
|
<div class="card">
|
|
103
104
|
<div class="card-body" style="height: 5rem">
|
|
104
105
|
</div>
|
|
@@ -116,7 +117,7 @@ Add your own text to a ribbon to display any additional information and make it
|
|
|
116
117
|
<div class="card-body">
|
|
117
118
|
</div>
|
|
118
119
|
<div class="ribbon bg-green">
|
|
119
|
-
<!-- SVG icon from http://tabler
|
|
120
|
+
<!-- SVG icon from http://tabler.io/icons/icon/star -->
|
|
120
121
|
<svg>...</svg>
|
|
121
122
|
</div>
|
|
122
123
|
</div>
|
|
@@ -126,7 +127,7 @@ Add your own text to a ribbon to display any additional information and make it
|
|
|
126
127
|
|
|
127
128
|
Change the style of a ribbon to make it go well with your interface design.
|
|
128
129
|
|
|
129
|
-
```html example columns={1} centered
|
|
130
|
+
```html example columns={1} centered background="base"
|
|
130
131
|
<div class="card w-100">
|
|
131
132
|
<div class="card-body" style="height: 5rem">
|
|
132
133
|
</div>
|
|
@@ -144,7 +145,7 @@ Change the style of a ribbon to make it go well with your interface design.
|
|
|
144
145
|
<div class="card-body">
|
|
145
146
|
</div>
|
|
146
147
|
<div class="ribbon ribbon-bookmark bg-orange">
|
|
147
|
-
<!-- SVG icon from http://tabler
|
|
148
|
+
<!-- SVG icon from http://tabler.io/icons/icon/star -->
|
|
148
149
|
<svg>...</svg>
|
|
149
150
|
</div>
|
|
150
151
|
</div>
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Spinners
|
|
3
|
-
|
|
3
|
+
summary: Spinners are used to show the loading state of a component or page. They provide feedback for an action a user has taken, when it takes a bit longer to complete.
|
|
4
4
|
bootstrapLink: components/spinners/
|
|
5
|
+
description: Indicate loading state with spinners.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
8
9
|
|
|
9
10
|
Use the default spinner to notify users that an action they have taken is in progress, helping them avoid confusion.
|
|
10
11
|
|
|
11
|
-
```html
|
|
12
|
+
```html
|
|
13
|
+
<div class="spinner-border"></div>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Look at the example below to see how the spinner works:
|
|
17
|
+
|
|
18
|
+
```html example centered
|
|
12
19
|
<div class="spinner-border"></div>
|
|
13
20
|
```
|
|
14
21
|
|
|
15
22
|
## Colors
|
|
16
23
|
|
|
17
|
-
Choose one of the available colors to customize the spinner and make it suit your design.
|
|
24
|
+
Choose one of the available colors to customize the spinner and make it suit your design. Full list of available colors can be found in the [Colors](/docs/ui/base/colors) section.
|
|
18
25
|
|
|
19
26
|
```html example centered separated
|
|
20
27
|
<div class="spinner-border text-blue" role="status"></div>
|
|
@@ -40,7 +47,7 @@ Choose one of the available colors to customize the spinner and make it suit you
|
|
|
40
47
|
|
|
41
48
|
Choose the size of your spinner. You can use the default size or use the `spinner-border-sm` class to display a smaller spinner.
|
|
42
49
|
|
|
43
|
-
```html example
|
|
50
|
+
```html example centered separated
|
|
44
51
|
<div class="spinner-border" role="status"></div>
|
|
45
52
|
<div class="spinner-border spinner-border-sm" role="status"></div>
|
|
46
53
|
```
|
|
@@ -49,7 +56,7 @@ Choose the size of your spinner. You can use the default size or use the `spinne
|
|
|
49
56
|
|
|
50
57
|
Use the growing spinner, if you are looking for a more original design than a border spinner. The spinner grows to show the loading state.
|
|
51
58
|
|
|
52
|
-
```html example
|
|
59
|
+
```html example centered
|
|
53
60
|
<div class="spinner-grow" role="status"></div>
|
|
54
61
|
```
|
|
55
62
|
|
|
@@ -75,11 +82,20 @@ Growing spinners also come in a variety of colors to choose from.
|
|
|
75
82
|
<div class="spinner-grow text-azure" role="status"></div>
|
|
76
83
|
```
|
|
77
84
|
|
|
78
|
-
|
|
85
|
+
## Button with spinner
|
|
79
86
|
|
|
80
87
|
Use buttons with spinners to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.
|
|
81
88
|
|
|
82
|
-
```html
|
|
89
|
+
```html
|
|
90
|
+
<a href="#" class="btn btn-primary">
|
|
91
|
+
<span class="spinner-border spinner-border-sm me-2" role="status"></span>
|
|
92
|
+
Button
|
|
93
|
+
</a>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Look at the example below to see how the button with a spinner works:
|
|
97
|
+
|
|
98
|
+
```html example centered separated code background="bg-light"
|
|
83
99
|
<a href="#" class="btn btn-primary">
|
|
84
100
|
<span class="spinner-border spinner-border-sm me-2" role="status"></span>
|
|
85
101
|
Button
|
|
@@ -104,11 +120,16 @@ Use buttons with spinners to notify users that an action they have taken by clic
|
|
|
104
120
|
|
|
105
121
|
## Animated dots
|
|
106
122
|
|
|
107
|
-
|
|
108
|
-
|
|
123
|
+
Use animated dots to show the loading state of a component. They provide feedback for an action a user has taken, when it takes a bit longer to complete. To do it you need to use the `.animated-dots` class on `span` element.
|
|
124
|
+
|
|
125
|
+
```html example centered code background="bg-light"
|
|
126
|
+
<h1>Loading<span class="animated-dots"></span>
|
|
127
|
+
</h1>
|
|
109
128
|
```
|
|
110
129
|
|
|
111
|
-
|
|
130
|
+
Use buttons with animated dots to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.
|
|
131
|
+
|
|
132
|
+
```html example centered separated background="bg-light"
|
|
112
133
|
<a href="#" class="btn btn-primary">
|
|
113
134
|
Loading<span class="animated-dots"></span>
|
|
114
135
|
</a>
|