@tabler/core 1.0.0-beta23 → 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 +2 -2
- package/dist/css/tabler-socials.min.css +2 -2
- package/dist/css/tabler-socials.rtl.css +2 -2
- package/dist/css/tabler-socials.rtl.min.css +2 -2
- package/dist/css/tabler-vendors.css +23 -18
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +23 -18
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +1296 -1505
- package/dist/css/tabler.min.css +4 -4
- package/dist/css/tabler.rtl.css +1296 -1505
- package/dist/css/tabler.rtl.min.css +4 -4
- 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 +2 -2
- package/dist/js/tabler.esm.min.js +2 -2
- package/dist/js/tabler.js +2 -2
- package/dist/js/tabler.min.js +2 -2
- package/docs/illustrations/introduction/contents.mdx +77 -0
- package/docs/illustrations/introduction/customization.mdx +0 -11
- package/docs/illustrations/introduction/license.mdx +22 -0
- package/docs/ui/components/alerts.mdx +38 -114
- package/docs/ui/components/badges.mdx +57 -75
- package/docs/ui/components/charts.mdx +13 -23
- package/docs/ui/components/countup.mdx +73 -43
- package/docs/ui/components/dropzone.mdx +37 -6
- package/docs/ui/components/icons.mdx +49 -11
- package/docs/ui/components/inline-player.mdx +28 -2
- package/docs/ui/components/modals.mdx +40 -10
- package/docs/ui/components/offcanvas.mdx +55 -0
- package/docs/ui/components/placeholder.mdx +16 -17
- package/docs/ui/components/range-slider.mdx +0 -1
- package/docs/ui/components/statuses.mdx +12 -0
- package/docs/ui/components/steps.mdx +59 -17
- package/docs/ui/components/tinymce.mdx +0 -1
- package/docs/ui/components/vector-maps.mdx +170 -0
- package/docs/ui/forms/form-elements.mdx +0 -1
- package/docs/ui/getting-started/browser-support.mdx +8 -2
- package/docs/ui/getting-started/how-to-contribute.mdx +96 -0
- package/docs/ui/getting-started/installation.mdx +67 -0
- package/docs/ui/getting-started/license.mdx +30 -0
- package/docs/ui/layout/navbars.mdx +106 -0
- package/docs/ui/layout/navs-tabls.mdx +187 -0
- package/docs/ui/layout/page-layouts.mdx +8 -5
- package/docs/ui/utilities/borders.mdx +67 -48
- package/docs/ui/utilities/cursors.mdx +20 -50
- package/docs/ui/utilities/interactions.mdx +2 -2
- 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 +7 -5
- 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 +55 -18
- 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-vendors.scss +1 -0
- package/src/scss/ui/_buttons.scss +7 -7
- package/src/scss/ui/_images.scss +4 -0
- package/src/scss/ui/_lists.scss +11 -15
- package/src/scss/utils/_colors.scss +1 -1
- package/src/scss/vendor/_dropzone.scss +3 -3
- package/src/scss/vendor/_typed.scss +4 -0
- package/docs/ui/getting-started/development.mdx +0 -32
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Icons
|
|
3
|
-
summary: Use one of over
|
|
3
|
+
summary: Use one of over 5000 icons created specifically for Tabler and make your dashboard look even more attractive. All icons are under MIT license, so you can use them without any problem both in private and commercial projects.
|
|
4
4
|
banner: icons
|
|
5
5
|
description: Enhance dashboards with custom icons.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
If you need to add icons to your website, you can use the Tabler Icons library. It contains over 5000 icons that you can use in your projects. All icons are under the MIT license, so you can use them without any problem both in private and commercial projects. You can find the Tabler Icons library [here](https://tabler-icons.io/).
|
|
9
|
+
|
|
8
10
|
## Base icon
|
|
9
11
|
|
|
12
|
+
To add icon to your code copy the SVG code from the Tabler Icons website and paste it into your HTML file.
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<svg 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">
|
|
16
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
17
|
+
<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>
|
|
18
|
+
</svg>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Results can be seen in the example below.
|
|
22
|
+
|
|
10
23
|
```html example centered separated
|
|
11
24
|
<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">
|
|
12
25
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
@@ -40,6 +53,17 @@ description: Enhance dashboards with custom icons.
|
|
|
40
53
|
|
|
41
54
|
## Filled icons
|
|
42
55
|
|
|
56
|
+
To use filled icons, you need to copy the SVG code from the Tabler Icons website and paste it into your HTML file.
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<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">
|
|
60
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
61
|
+
<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>
|
|
62
|
+
</svg>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Look at the example below to see the filled icons.
|
|
66
|
+
|
|
43
67
|
```html example centered separated
|
|
44
68
|
<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">
|
|
45
69
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
@@ -64,6 +88,17 @@ description: Enhance dashboards with custom icons.
|
|
|
64
88
|
|
|
65
89
|
## Icon colors
|
|
66
90
|
|
|
91
|
+
To change the color of the icon, you need to add the `text-` class to the parent element of the icon. Full list of available colors can be found [here](/docs/ui/colors). Color classes can be used with any HTML element.
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<span class="text-red">
|
|
95
|
+
<!-- SVG icon from http://tabler.io/icons/icon/heart -->
|
|
96
|
+
<svg>...</svg>
|
|
97
|
+
</span>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Look at the example below to see how the color of the icon changes.
|
|
101
|
+
|
|
67
102
|
```html example centered separated
|
|
68
103
|
<span class="text-red">
|
|
69
104
|
<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">
|
|
@@ -93,6 +128,19 @@ description: Enhance dashboards with custom icons.
|
|
|
93
128
|
|
|
94
129
|
## Icon animations
|
|
95
130
|
|
|
131
|
+
To add an animation to the icon, you need to add the `icon-pulse`, `icon-tada`, or `icon-rotate` class to the SVG element.
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<!-- SVG icon from http://tabler.io/icons/icon/heart -->
|
|
135
|
+
<svg class="icon-pulse" ...>...</svg>
|
|
136
|
+
<!-- SVG icon from http://tabler.io/icons/icon/bell -->
|
|
137
|
+
<svg class="icon-tada" ...>...</svg>
|
|
138
|
+
<!-- SVG icon from http://tabler.io/icons/icon/rotate-clockwise -->
|
|
139
|
+
<svg class="icon-rotate" ...>...</svg>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Look at the example below to see the animated icons.
|
|
143
|
+
|
|
96
144
|
```html example centered separated
|
|
97
145
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-pulse" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
98
146
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
@@ -109,13 +157,3 @@ description: Enhance dashboards with custom icons.
|
|
|
109
157
|
</svg>
|
|
110
158
|
```
|
|
111
159
|
|
|
112
|
-
```html
|
|
113
|
-
<!-- SVG icon from http://tabler.io/icons/icon/heart -->
|
|
114
|
-
<svg class="icon-pulse" ...>...</svg>
|
|
115
|
-
|
|
116
|
-
<!-- SVG icon from http://tabler.io/icons/icon/bell -->
|
|
117
|
-
<svg class="icon-tada" ...>...</svg>
|
|
118
|
-
|
|
119
|
-
<!-- SVG icon from http://tabler.io/icons/icon/rotate-clockwise -->
|
|
120
|
-
<svg class="icon-rotate" ...>...</svg>
|
|
121
|
-
```
|
|
@@ -5,11 +5,36 @@ summary: A simple, lightweight, accessible and customizable HTML5, YouTube and V
|
|
|
5
5
|
description: Lightweight media player for websites.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The Inline Player is a versatile, modern media player designed for seamless integration into websites. It supports HTML5, YouTube, and Vimeo content, offering a lightweight and accessible solution for media playback. Built with customization and ease of use in mind, this player ensures compatibility with modern browsers and enhances user experience.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
To use the Inline Player, you need to include the Plyr library in your project. You can install it via npm or include it directly from a CDN. The following example demonstrates how to include the Plyr library from a CDN:
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
8
21
|
## Sample demo
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
Integrating the Inline Player into your website is straightforward. Below is a sample implementation for a YouTube video:
|
|
24
|
+
|
|
25
|
+
```html
|
|
11
26
|
<div id="player-youtube" data-plyr-provider="youtube" data-plyr-embed-id="dQw4w9WgXcQ"></div>
|
|
27
|
+
<script>
|
|
28
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
29
|
+
window.Plyr && (new Plyr('#player-youtube'));
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
```
|
|
12
33
|
|
|
34
|
+
Look at the example below to see how the Inline Player works with a YouTube video.
|
|
35
|
+
|
|
36
|
+
```html example vendors height="500px" libs="plyr"
|
|
37
|
+
<div id="player-youtube" data-plyr-provider="youtube" data-plyr-embed-id="dQw4w9WgXcQ"></div>
|
|
13
38
|
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
14
39
|
<script>
|
|
15
40
|
document.addEventListener("DOMContentLoaded", function() {
|
|
@@ -20,9 +45,10 @@ description: Lightweight media player for websites.
|
|
|
20
45
|
|
|
21
46
|
## Vimeo file
|
|
22
47
|
|
|
48
|
+
Here’s how to embed a Vimeo video using the Inline Player:
|
|
49
|
+
|
|
23
50
|
```html example vendors height="500px" libs="plyr"
|
|
24
51
|
<div id="player-vimeo" data-plyr-provider="vimeo" data-plyr-embed-id="515937365"></div>
|
|
25
|
-
|
|
26
52
|
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
27
53
|
<script>
|
|
28
54
|
document.addEventListener("DOMContentLoaded", function() {
|
|
@@ -4,13 +4,36 @@ summary: Use Bootstrap’s JavaScript modal plugin to add dialogs to your site f
|
|
|
4
4
|
description: Dialogs for notifications and content.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
Modals are built with HTML, CSS, and JavaScript. They’re positioned over everything else in the document and remove scroll from the `<body>` so that modal content scrolls instead.
|
|
8
|
+
|
|
7
9
|
## Default markup
|
|
8
10
|
|
|
11
|
+
To create a modal, you need to add a `.modal` element to the document. Inside the `.modal`, you need to add a `.modal-dialog` element, which contains a `.modal-content` element. The `.modal-content` element contains the modal’s header, body, and footer.
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<div class="modal" tabindex="-1">
|
|
15
|
+
<div class="modal-dialog" role="document">
|
|
16
|
+
<div class="modal-content">
|
|
17
|
+
<div class="modal-header">
|
|
18
|
+
...
|
|
19
|
+
</div>
|
|
20
|
+
<div class="modal-body">
|
|
21
|
+
...
|
|
22
|
+
</div>
|
|
23
|
+
<div class="modal-footer">
|
|
24
|
+
...
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Look at the example below to see how the modal looks.
|
|
32
|
+
|
|
9
33
|
```html example centered height="30rem"
|
|
10
34
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
11
35
|
Launch demo modal
|
|
12
36
|
</button>
|
|
13
|
-
|
|
14
37
|
<div class="modal" id="exampleModal" tabindex="-1">
|
|
15
38
|
<div class="modal-dialog" role="document">
|
|
16
39
|
<div class="modal-content">
|
|
@@ -32,11 +55,9 @@ description: Dialogs for notifications and content.
|
|
|
32
55
|
|
|
33
56
|
## Prompt and alert
|
|
34
57
|
|
|
35
|
-
|
|
36
|
-
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
37
|
-
Launch alert modal
|
|
38
|
-
</button>
|
|
58
|
+
You can use the modal to create a prompt or alert. Look at the example below to see how the prompt and alert look.
|
|
39
59
|
|
|
60
|
+
```html example centered height="30rem"
|
|
40
61
|
<div class="modal" id="exampleModal" tabindex="-1">
|
|
41
62
|
<div class="modal-dialog modal-sm" role="document">
|
|
42
63
|
<div class="modal-content">
|
|
@@ -70,13 +91,15 @@ description: Dialogs for notifications and content.
|
|
|
70
91
|
</div>
|
|
71
92
|
</div>
|
|
72
93
|
</div>
|
|
94
|
+
<script>
|
|
95
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
96
|
+
var myModal = new bootstrap.Modal(document.getElementById('exampleModal'))
|
|
97
|
+
myModal.show()
|
|
98
|
+
})
|
|
99
|
+
</script>
|
|
73
100
|
```
|
|
74
101
|
|
|
75
102
|
```html example centered height="30rem"
|
|
76
|
-
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
77
|
-
Launch demo modal
|
|
78
|
-
</button>
|
|
79
|
-
|
|
80
103
|
<div class="modal" id="exampleModal" tabindex="-1">
|
|
81
104
|
<div class="modal-dialog modal-sm" role="document">
|
|
82
105
|
<div class="modal-content">
|
|
@@ -110,15 +133,22 @@ description: Dialogs for notifications and content.
|
|
|
110
133
|
</div>
|
|
111
134
|
</div>
|
|
112
135
|
</div>
|
|
136
|
+
<script>
|
|
137
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
138
|
+
var myModal = new bootstrap.Modal(document.getElementById('exampleModal'))
|
|
139
|
+
myModal.show()
|
|
140
|
+
})
|
|
141
|
+
</script>
|
|
113
142
|
```
|
|
114
143
|
|
|
115
144
|
## Modal with form
|
|
116
145
|
|
|
146
|
+
You can use the modal to create a form. Look at the example below to see how the form looks.
|
|
147
|
+
|
|
117
148
|
```html example centered height="30rem"
|
|
118
149
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
119
150
|
Launch modal with form
|
|
120
151
|
</button>
|
|
121
|
-
|
|
122
152
|
<div class="modal" id="exampleModal" tabindex="-1">
|
|
123
153
|
<div class="modal-dialog modal-lg" role="document">
|
|
124
154
|
<div class="modal-content">
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Offcanvas
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Offcanvas is a sidebar component that can be toggled via JavaScript to appear from the left, right, top, or bottom edge of the viewport. Buttons or anchors are used as triggers that are attached to specific elements you toggle, and `data` attributes are used to invoke our JavaScript.
|
|
6
|
+
|
|
7
|
+
## Basic usage
|
|
8
|
+
|
|
9
|
+
To create an offcanvas, add the `.offcanvas` class to a container element. You can also add the `.offcanvas-start`, `.offcanvas-end`, `.offcanvas-top`, or `.offcanvas-bottom` class to specify the position of the offcanvas. The `.show` class is used to display the offcanvas.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvas">
|
|
13
|
+
<div class="offcanvas-body">
|
|
14
|
+
Content for the offcanvas goes here. You can place just about any Tabler component or custom elements here.
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Look at the example below to see how the offcanvas works.
|
|
20
|
+
|
|
21
|
+
```html example vendors height="25rem"
|
|
22
|
+
<div class="offcanvas offcanvas-start show" tabindex="-1" id="offcanvas" aria-labelledby="offcanvasLabel">
|
|
23
|
+
<div class="offcanvas-body">
|
|
24
|
+
Content for the offcanvas goes here. You can place just about any Tabler component or custom elements here.
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Cookies banner
|
|
30
|
+
|
|
31
|
+
The offcanvas component is used to display a cookies banner. It is a great way to inform users about the use of cookies on your website and to get their consent.
|
|
32
|
+
|
|
33
|
+
```html example vendors height="25rem"
|
|
34
|
+
<div class="offcanvas offcanvas-bottom h-auto show" tabindex="-1" id="offcanvasBottom" aria-modal="true" role="dialog">
|
|
35
|
+
<div class="offcanvas-body">
|
|
36
|
+
<div class="container">
|
|
37
|
+
<div class="row align-items-center">
|
|
38
|
+
<div class="col">
|
|
39
|
+
<strong>Do you like cookies?</strong> 🍪 We use cookies to ensure you get the best experience on our website. <a href="./terms-of-service.html" target="_blank">Learn more</a>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-auto">
|
|
42
|
+
<button type="button" class="btn btn-primary" data-bs-dismiss="offcanvas">
|
|
43
|
+
Essential Cookies Only
|
|
44
|
+
</button>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-auto">
|
|
47
|
+
<button type="button" class="btn btn-primary" data-bs-dismiss="offcanvas">
|
|
48
|
+
Allow All Cookies
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
```
|
|
@@ -51,9 +51,15 @@ A placeholder can contain also a header element looks like header:
|
|
|
51
51
|
|
|
52
52
|
## Placeholder avatar
|
|
53
53
|
|
|
54
|
-
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.
|
|
55
55
|
|
|
56
|
-
```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
|
|
57
63
|
<div class="row">
|
|
58
64
|
<div class="col-auto">
|
|
59
65
|
<div class="avatar placeholder"></div>
|
|
@@ -65,7 +71,7 @@ You can make your placeholder item look like an avatar.
|
|
|
65
71
|
</div>
|
|
66
72
|
```
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
You can also use the `avatar` component with different sizes. Look at the example below to see how the avatar placeholder looks like.
|
|
69
75
|
|
|
70
76
|
```html example centered separated
|
|
71
77
|
<div class="avatar avatar-xl placeholder"></div>
|
|
@@ -82,7 +88,7 @@ You can use a placeholder, which will look like a picture. You can use the `rati
|
|
|
82
88
|
|
|
83
89
|
You can also use the `ratio` component, and get the image in the right proportions.
|
|
84
90
|
|
|
85
|
-
```html example columns={1} height={500} scrollable
|
|
91
|
+
```html example columns={1} height={500} scrollable separated vertical
|
|
86
92
|
<div class="ratio ratio-1x1 placeholder">
|
|
87
93
|
<div class="placeholder-image"></div>
|
|
88
94
|
</div>
|
|
@@ -99,23 +105,16 @@ You can also use the `ratio` component, and get the image in the right proportio
|
|
|
99
105
|
|
|
100
106
|
## Placeholder color
|
|
101
107
|
|
|
102
|
-
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.
|
|
103
109
|
|
|
104
|
-
```html
|
|
105
|
-
<span class="placeholder col-12"></span>
|
|
106
|
-
<span class="placeholder col-12 bg-primary"></span>
|
|
107
|
-
<span class="placeholder col-12 bg-secondary"></span>
|
|
108
|
-
<span class="placeholder col-12 bg-success"></span>
|
|
109
|
-
<span class="placeholder col-12 bg-danger"></span>
|
|
110
|
-
<span class="placeholder col-12 bg-warning"></span>
|
|
111
|
-
<span class="placeholder col-12 bg-info"></span>
|
|
112
|
-
<span class="placeholder col-12 bg-light"></span>
|
|
110
|
+
```html
|
|
113
111
|
<span class="placeholder col-12 bg-dark"></span>
|
|
114
112
|
```
|
|
115
113
|
|
|
116
|
-
|
|
117
|
-
<span class="placeholder col-12"></span>
|
|
114
|
+
Look at the example below to see how the color affects the placeholder.
|
|
118
115
|
|
|
116
|
+
```html example columns={1} height={240}
|
|
117
|
+
<span class="placeholder col-12"></span>
|
|
119
118
|
<span class="placeholder col-12 bg-primary"></span>
|
|
120
119
|
<span class="placeholder col-12 bg-secondary"></span>
|
|
121
120
|
<span class="placeholder col-12 bg-success"></span>
|
|
@@ -154,7 +153,7 @@ Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better c
|
|
|
154
153
|
|
|
155
154
|
See in the following examples how else you can use the placeholder component
|
|
156
155
|
|
|
157
|
-
```html example columns={1} height={1000} separated vertical scrollable
|
|
156
|
+
```html example columns={1} height={1000} separated vertical scrollable background="surface"
|
|
158
157
|
<div class="card placeholder-glow">
|
|
159
158
|
<div class="ratio ratio-21x9 card-img-top placeholder"></div>
|
|
160
159
|
<div class="card-body">
|
|
@@ -13,7 +13,6 @@ All options and features can be found [**here**](https://refreshless.com/nouisli
|
|
|
13
13
|
|
|
14
14
|
```html example centered vendors libs="nouislider" columns={1}
|
|
15
15
|
<div id="range-simple"></div>
|
|
16
|
-
|
|
17
16
|
<script>
|
|
18
17
|
document.addEventListener("DOMContentLoaded", function() {
|
|
19
18
|
window.noUiSlider && (noUiSlider.create(document.getElementById('range-simple'), {
|
|
@@ -210,6 +210,12 @@ Use the lite status to make the status less noticeable. To do this, use the `.st
|
|
|
210
210
|
|
|
211
211
|
If you need only dot status, you can use the `.status-dot` class.
|
|
212
212
|
|
|
213
|
+
```html
|
|
214
|
+
<span class="status-dot status-blue"></span>
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Look at the example below to see how the status dots work:
|
|
218
|
+
|
|
213
219
|
```html example centered separated
|
|
214
220
|
<span class="status-dot status-blue"></span>
|
|
215
221
|
<span class="status-dot status-azure"></span>
|
|
@@ -227,6 +233,12 @@ If you need only dot status, you can use the `.status-dot` class.
|
|
|
227
233
|
|
|
228
234
|
The dots can also be animated. To do this, use the `.status-dot-animated` class.
|
|
229
235
|
|
|
236
|
+
```html
|
|
237
|
+
<span class="status-dot status-dot-animated status-blue"></span>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
The animated status dots can be used in the same way as the regular status dots.
|
|
241
|
+
|
|
230
242
|
```html example centered separated
|
|
231
243
|
<span class="status-dot status-dot-animated status-blue"></span>
|
|
232
244
|
<span class="status-dot status-dot-animated status-azure"></span>
|
|
@@ -7,11 +7,27 @@ description: Simplify complex processes with steps.
|
|
|
7
7
|
|
|
8
8
|
## Default markup
|
|
9
9
|
|
|
10
|
-
Steps
|
|
10
|
+
Steps provide a clear visual representation of a user’s progress through a multi-step process. By showing what has been completed and what remains, steps enhance usability and encourage task completion.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
To create a default progress tracker, use the `.steps` class and define each step as a `.step-item`. The active step clearly indicates the current position in the process.
|
|
13
13
|
|
|
14
|
-
```html
|
|
14
|
+
```html
|
|
15
|
+
<div class="steps">
|
|
16
|
+
<a href="#" class="step-item">
|
|
17
|
+
Step 1
|
|
18
|
+
</a>
|
|
19
|
+
<a href="#" class="step-item">
|
|
20
|
+
Step 2
|
|
21
|
+
</a>
|
|
22
|
+
<a href="#" class="step-item active">
|
|
23
|
+
Step 3
|
|
24
|
+
</a>
|
|
25
|
+
</div>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The example below demonstrates a simple progress tracker with four steps, where the third step is active.
|
|
29
|
+
|
|
30
|
+
```html example centered
|
|
15
31
|
<div class="steps">
|
|
16
32
|
<a href="#" class="step-item">
|
|
17
33
|
Step 1
|
|
@@ -32,18 +48,28 @@ Use the `steps` class to create the default progress tracker and name the steps
|
|
|
32
48
|
|
|
33
49
|
Add tooltips, if you want to provide users with additional information about the steps they are expected to complete. Tooltips are displayed when a user hovers over a given step and help clarify what might not be clear from the interface.
|
|
34
50
|
|
|
35
|
-
|
|
51
|
+
To add a tooltip, use the `data-bs-toggle="tooltip"` attribute and specify the tooltip content with the `title` attribute.
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<a href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 1 description">
|
|
55
|
+
Step 1
|
|
56
|
+
</a>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The example below demonstrates a progress tracker with tooltips for each step.
|
|
60
|
+
|
|
61
|
+
```html example centered height="20rem"
|
|
36
62
|
<div class="steps">
|
|
37
|
-
<a href="#" class="step-item" data-bs-toggle="tooltip" title="Step 1 description">
|
|
63
|
+
<a href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 1 description">
|
|
38
64
|
Step 1
|
|
39
65
|
</a>
|
|
40
|
-
<a href="#" class="step-item" data-bs-toggle="tooltip" title="Step 2 description">
|
|
66
|
+
<a href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 2 description">
|
|
41
67
|
Step 2
|
|
42
68
|
</a>
|
|
43
|
-
<a href="#" class="step-item active" data-bs-toggle="tooltip" title="Step 3 description">
|
|
69
|
+
<a href="#" class="step-item active" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 3 description">
|
|
44
70
|
Step 3
|
|
45
71
|
</a>
|
|
46
|
-
<span href="#" class="step-item" data-bs-toggle="tooltip" title="Step 4 description">
|
|
72
|
+
<span href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 4 description">
|
|
47
73
|
Step 4
|
|
48
74
|
</span>
|
|
49
75
|
</div>
|
|
@@ -53,7 +79,15 @@ Add tooltips, if you want to provide users with additional information about the
|
|
|
53
79
|
|
|
54
80
|
You can customize the default progress indicator by changing the color to one that better suits your design. Click [here](/docs/ui/base/colors) to see the range of available colors.
|
|
55
81
|
|
|
56
|
-
```html
|
|
82
|
+
```html
|
|
83
|
+
<div class="steps steps-green">
|
|
84
|
+
...
|
|
85
|
+
</div>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The example below demonstrates a progress tracker with two different color schemes.
|
|
89
|
+
|
|
90
|
+
```html example centered
|
|
57
91
|
<div class="steps steps-green">
|
|
58
92
|
<a href="#" class="step-item">
|
|
59
93
|
Step 1
|
|
@@ -88,21 +122,29 @@ You can customize the default progress indicator by changing the color to one th
|
|
|
88
122
|
|
|
89
123
|
For designs with limited space, use progress indicators without titles and add tooltips to provide the necessary details.
|
|
90
124
|
|
|
91
|
-
```html example
|
|
125
|
+
```html example centered
|
|
92
126
|
<div class="steps">
|
|
93
|
-
<a href="#" class="step-item" data-bs-toggle="tooltip" title="Step 1 description"></a>
|
|
94
|
-
<a href="#" class="step-item" data-bs-toggle="tooltip" title="Step 2 description"></a>
|
|
95
|
-
<a href="#" class="step-item active" data-bs-toggle="tooltip" title="Step 3 description"></a>
|
|
96
|
-
<span href="#" class="step-item" data-bs-toggle="tooltip" title="Step 4 description"></span>
|
|
127
|
+
<a href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 1 description"></a>
|
|
128
|
+
<a href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 2 description"></a>
|
|
129
|
+
<a href="#" class="step-item active" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 3 description"></a>
|
|
130
|
+
<span href="#" class="step-item" data-bs-toggle="tooltip" data-bs-placement="top" title="Step 4 description"></span>
|
|
97
131
|
</div>
|
|
98
132
|
```
|
|
99
133
|
|
|
100
134
|
## Steps with numbers
|
|
101
135
|
|
|
102
|
-
Use the `steps-counter` class to create a progress tracker with numbers instead of titles and change the color to customize it.
|
|
136
|
+
Use the `steps-counter` class to create a progress tracker with numbers instead of titles and change the color to customize it.
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<div class="steps steps-counter">
|
|
140
|
+
...
|
|
141
|
+
</div>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The example below demonstrates a progress tracker with numbers and a different color scheme.
|
|
103
145
|
|
|
104
|
-
```html example
|
|
105
|
-
<div class="steps steps-counter
|
|
146
|
+
```html example centered
|
|
147
|
+
<div class="steps steps-counter">
|
|
106
148
|
<a href="#" class="step-item"></a>
|
|
107
149
|
<a href="#" class="step-item active"></a>
|
|
108
150
|
<span href="#" class="step-item"></span>
|
|
@@ -15,7 +15,6 @@ Initialize TinyMCE 6 on any element (or elements) on the web page by passing an
|
|
|
15
15
|
<form method="post">
|
|
16
16
|
<textarea id="tinymce-default">Hello, <b>Tabler</b>!</textarea>
|
|
17
17
|
</form>
|
|
18
|
-
|
|
19
18
|
<script src="$TABLER_CDN/dist/libs/tinymce/tinymce.min.js" defer></script>
|
|
20
19
|
<script>
|
|
21
20
|
document.addEventListener("DOMContentLoaded", function() {
|