@tabler/core 1.1.0 → 1.1.1
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/docs/emails/index.mdx +14 -0
- package/docs/emails/introduction/compiled-html.mdx +29 -0
- package/docs/emails/introduction/contents.mdx +63 -0
- package/docs/emails/introduction/index.mdx +9 -0
- package/docs/emails/introduction/source-html.mdx +26 -0
- package/docs/icons/index.mdx +13 -0
- package/docs/icons/libraries/index.mdx +5 -0
- package/docs/icons/libraries/preact.mdx +42 -0
- package/docs/icons/libraries/react.mdx +42 -0
- package/docs/icons/libraries/solidjs.mdx +42 -0
- package/docs/icons/libraries/svelte.mdx +43 -0
- package/docs/icons/libraries/vue.mdx +50 -0
- package/docs/icons/libraries/webfont.mdx +60 -0
- package/docs/icons/plugins/figma.mdx +15 -0
- package/docs/icons/plugins/index.mdx +4 -0
- package/docs/icons/static-files/eps.mdx +15 -0
- package/docs/icons/static-files/index.mdx +5 -0
- package/docs/icons/static-files/pdf.mdx +15 -0
- package/docs/icons/static-files/png.mdx +31 -0
- package/docs/icons/static-files/svg.mdx +85 -0
- package/docs/illustrations/index.mdx +8 -0
- package/docs/illustrations/introduction/contents.mdx +77 -0
- package/docs/illustrations/introduction/customization.mdx +1198 -0
- package/docs/illustrations/introduction/index.mdx +5 -0
- package/docs/illustrations/introduction/license.mdx +90 -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 +83 -0
- package/docs/ui/base/index.mdx +6 -0
- package/docs/ui/base/typography.mdx +311 -0
- package/docs/ui/components/alerts.mdx +406 -0
- package/docs/ui/components/autosize.mdx +25 -0
- package/docs/ui/components/avatars.mdx +227 -0
- package/docs/ui/components/badges.mdx +112 -0
- package/docs/ui/components/breadcrumb.mdx +199 -0
- package/docs/ui/components/buttons.mdx +1213 -0
- package/docs/ui/components/cards.mdx +417 -0
- package/docs/ui/components/carousel.mdx +459 -0
- package/docs/ui/components/charts.mdx +697 -0
- package/docs/ui/components/countup.mdx +165 -0
- package/docs/ui/components/datagrid.mdx +120 -0
- package/docs/ui/components/divider.mdx +68 -0
- package/docs/ui/components/dropdowns.mdx +302 -0
- package/docs/ui/components/dropzone.mdx +88 -0
- package/docs/ui/components/empty.mdx +149 -0
- package/docs/ui/components/icons.mdx +392 -0
- package/docs/ui/components/index.mdx +6 -0
- package/docs/ui/components/inline-player.mdx +58 -0
- package/docs/ui/components/modals.mdx +297 -0
- package/docs/ui/components/offcanvas.mdx +70 -0
- package/docs/ui/components/placeholder.mdx +273 -0
- package/docs/ui/components/popover.mdx +142 -0
- package/docs/ui/components/progress.mdx +241 -0
- package/docs/ui/components/range-slider.mdx +32 -0
- package/docs/ui/components/ribbons.mdx +207 -0
- package/docs/ui/components/segmented-control.mdx +401 -0
- package/docs/ui/components/spinners.mdx +135 -0
- package/docs/ui/components/statuses.mdx +322 -0
- package/docs/ui/components/steps.mdx +174 -0
- package/docs/ui/components/switch-icon.mdx +386 -0
- package/docs/ui/components/tables.mdx +397 -0
- package/docs/ui/components/tabs.mdx +396 -0
- package/docs/ui/components/timelines.mdx +697 -0
- package/docs/ui/components/tinymce.mdx +46 -0
- package/docs/ui/components/toasts.mdx +126 -0
- package/docs/ui/components/tooltips.mdx +65 -0
- package/docs/ui/components/tracking.mdx +548 -0
- package/docs/ui/components/vector-maps.mdx +166 -0
- package/docs/ui/forms/form-color-check.mdx +220 -0
- package/docs/ui/forms/form-elements.mdx +632 -0
- package/docs/ui/forms/form-fieldset.mdx +45 -0
- package/docs/ui/forms/form-helpers.mdx +91 -0
- package/docs/ui/forms/form-image-check.mdx +213 -0
- package/docs/ui/forms/form-input-mask.mdx +61 -0
- package/docs/ui/forms/form-selectboxes.mdx +398 -0
- package/docs/ui/forms/form-validation.mdx +62 -0
- package/docs/ui/forms/index.mdx +6 -0
- package/docs/ui/getting-started/browser-support.mdx +28 -0
- package/docs/ui/getting-started/customize.mdx +28 -0
- package/docs/ui/getting-started/download.mdx +44 -0
- package/docs/ui/getting-started/faq.mdx +30 -0
- package/docs/ui/getting-started/how-to-contribute.mdx +84 -0
- package/docs/ui/getting-started/index.mdx +16 -0
- 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 +164 -0
- package/docs/ui/layout/navs-tabls.mdx +201 -0
- package/docs/ui/layout/page-headers.mdx +365 -0
- package/docs/ui/layout/page-layouts.mdx +213 -0
- package/docs/ui/plugins/flags.mdx +316 -0
- package/docs/ui/plugins/index.mdx +6 -0
- package/docs/ui/plugins/payments.mdx +152 -0
- package/docs/ui/plugins/social-icons.mdx +135 -0
- package/docs/ui/utilities/borders.mdx +260 -0
- package/docs/ui/utilities/cursors.mdx +63 -0
- package/docs/ui/utilities/index.mdx +5 -0
- package/docs/ui/utilities/interactions.mdx +26 -0
- 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 +6 -6
- package/LICENSE +0 -21
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Inline player
|
|
3
|
+
libs: plyr
|
|
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.
|
|
6
|
+
---
|
|
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
|
+
|
|
21
|
+
## Sample demo
|
|
22
|
+
|
|
23
|
+
Integrating the Inline Player into your website is straightforward. Below is a sample implementation for a YouTube video:
|
|
24
|
+
|
|
25
|
+
```html
|
|
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
|
+
```
|
|
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>
|
|
38
|
+
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
39
|
+
<script>
|
|
40
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
41
|
+
window.Plyr && new Plyr("#player-youtube");
|
|
42
|
+
});
|
|
43
|
+
</script>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Vimeo file
|
|
47
|
+
|
|
48
|
+
Here’s how to embed a Vimeo video using the Inline Player:
|
|
49
|
+
|
|
50
|
+
```html example vendors height="500px" libs="plyr"
|
|
51
|
+
<div id="player-vimeo" data-plyr-provider="vimeo" data-plyr-embed-id="515937365"></div>
|
|
52
|
+
<script src="$TABLER_CDN/dist/libs/plyr/dist/plyr.min.js"></script>
|
|
53
|
+
<script>
|
|
54
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
55
|
+
window.Plyr && new Plyr("#player-vimeo");
|
|
56
|
+
});
|
|
57
|
+
</script>
|
|
58
|
+
```
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Modals
|
|
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.
|
|
5
|
+
---
|
|
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
|
+
|
|
9
|
+
## Default markup
|
|
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">...</div>
|
|
18
|
+
<div class="modal-body">...</div>
|
|
19
|
+
<div class="modal-footer">...</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Look at the example below to see how the modal looks.
|
|
26
|
+
|
|
27
|
+
```html example centered height="30rem"
|
|
28
|
+
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
29
|
+
Launch demo modal
|
|
30
|
+
</button>
|
|
31
|
+
<div class="modal" id="exampleModal" tabindex="-1">
|
|
32
|
+
<div class="modal-dialog" role="document">
|
|
33
|
+
<div class="modal-content">
|
|
34
|
+
<div class="modal-header">
|
|
35
|
+
<h5 class="modal-title">Modal title</h5>
|
|
36
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="modal-body">
|
|
39
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci animi beatae delectus
|
|
40
|
+
deleniti dolorem eveniet facere fuga iste nemo nesciunt nihil odio perspiciatis, quia quis
|
|
41
|
+
reprehenderit sit tempora totam unde.
|
|
42
|
+
</div>
|
|
43
|
+
<div class="modal-footer">
|
|
44
|
+
<button type="button" class="btn me-auto" data-bs-dismiss="modal">Close</button>
|
|
45
|
+
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Save changes</button>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Prompt and alert
|
|
53
|
+
|
|
54
|
+
You can use the modal to create a prompt or alert. Look at the example below to see how the prompt and alert look.
|
|
55
|
+
|
|
56
|
+
```html example centered height="30rem"
|
|
57
|
+
<div class="modal" id="exampleModal" tabindex="-1">
|
|
58
|
+
<div class="modal-dialog modal-sm" role="document">
|
|
59
|
+
<div class="modal-content">
|
|
60
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
61
|
+
<div class="modal-status bg-danger"></div>
|
|
62
|
+
<div class="modal-body text-center py-4">
|
|
63
|
+
<svg
|
|
64
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
65
|
+
class="icon mb-2 text-danger icon-lg"
|
|
66
|
+
width="24"
|
|
67
|
+
height="24"
|
|
68
|
+
viewBox="0 0 24 24"
|
|
69
|
+
stroke-width="2"
|
|
70
|
+
stroke="currentColor"
|
|
71
|
+
fill="none"
|
|
72
|
+
stroke-linecap="round"
|
|
73
|
+
stroke-linejoin="round"
|
|
74
|
+
>
|
|
75
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
76
|
+
<path d="M12 9v2m0 4v.01" />
|
|
77
|
+
<path
|
|
78
|
+
d="M5 19h14a2 2 0 0 0 1.84 -2.75l-7.1 -12.25a2 2 0 0 0 -3.5 0l-7.1 12.25a2 2 0 0 0 1.75 2.75"
|
|
79
|
+
/>
|
|
80
|
+
</svg>
|
|
81
|
+
<h3>Are you sure?</h3>
|
|
82
|
+
<div class="text-secondary">
|
|
83
|
+
Do you really want to remove 84 files? What you've done cannot be undone.
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="modal-footer">
|
|
87
|
+
<div class="w-100">
|
|
88
|
+
<div class="row">
|
|
89
|
+
<div class="col">
|
|
90
|
+
<a href="#" class="btn w-100" data-bs-dismiss="modal"> Cancel </a>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col">
|
|
93
|
+
<a href="#" class="btn btn-danger w-100" data-bs-dismiss="modal"> Delete 84 items </a>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<script>
|
|
102
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
103
|
+
var myModal = new bootstrap.Modal(document.getElementById("exampleModal"));
|
|
104
|
+
myModal.show();
|
|
105
|
+
});
|
|
106
|
+
</script>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
```html example centered height="30rem"
|
|
110
|
+
<div class="modal" id="exampleModal" tabindex="-1">
|
|
111
|
+
<div class="modal-dialog modal-sm" role="document">
|
|
112
|
+
<div class="modal-content">
|
|
113
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
114
|
+
<div class="modal-status bg-success"></div>
|
|
115
|
+
<div class="modal-body text-center py-4">
|
|
116
|
+
<svg
|
|
117
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
118
|
+
class="icon mb-2 text-green icon-lg"
|
|
119
|
+
width="24"
|
|
120
|
+
height="24"
|
|
121
|
+
viewBox="0 0 24 24"
|
|
122
|
+
stroke-width="2"
|
|
123
|
+
stroke="currentColor"
|
|
124
|
+
fill="none"
|
|
125
|
+
stroke-linecap="round"
|
|
126
|
+
stroke-linejoin="round"
|
|
127
|
+
>
|
|
128
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
129
|
+
<circle cx="12" cy="12" r="9" />
|
|
130
|
+
<path d="M9 12l2 2l4 -4" />
|
|
131
|
+
</svg>
|
|
132
|
+
<h3>Payment succeeded</h3>
|
|
133
|
+
<div class="text-secondary">
|
|
134
|
+
Your payment of $290 has been successfully submitted. Your invoice has been sent to
|
|
135
|
+
support@tabler.io.
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="modal-footer">
|
|
139
|
+
<div class="w-100">
|
|
140
|
+
<div class="row">
|
|
141
|
+
<div class="col">
|
|
142
|
+
<a href="#" class="btn w-100" data-bs-dismiss="modal"> Go to dashboard </a>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col">
|
|
145
|
+
<a href="#" class="btn btn-success w-100" data-bs-dismiss="modal"> View invoice </a>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
<script>
|
|
154
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
155
|
+
var myModal = new bootstrap.Modal(document.getElementById("exampleModal"));
|
|
156
|
+
myModal.show();
|
|
157
|
+
});
|
|
158
|
+
</script>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Modal with form
|
|
162
|
+
|
|
163
|
+
You can use the modal to create a form. Look at the example below to see how the form looks.
|
|
164
|
+
|
|
165
|
+
```html example centered height="30rem"
|
|
166
|
+
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
|
|
167
|
+
Launch modal with form
|
|
168
|
+
</button>
|
|
169
|
+
<div class="modal" id="exampleModal" tabindex="-1">
|
|
170
|
+
<div class="modal-dialog modal-lg" role="document">
|
|
171
|
+
<div class="modal-content">
|
|
172
|
+
<div class="modal-header">
|
|
173
|
+
<h5 class="modal-title">New report</h5>
|
|
174
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="modal-body">
|
|
177
|
+
<div class="mb-3">
|
|
178
|
+
<label class="form-label">Name</label>
|
|
179
|
+
<input
|
|
180
|
+
type="text"
|
|
181
|
+
class="form-control"
|
|
182
|
+
name="example-text-input"
|
|
183
|
+
placeholder="Your report name"
|
|
184
|
+
/>
|
|
185
|
+
</div>
|
|
186
|
+
<label class="form-label">Report type</label>
|
|
187
|
+
<div class="form-selectgroup-boxes row mb-3">
|
|
188
|
+
<div class="col-md-6">
|
|
189
|
+
<label class="form-selectgroup-item">
|
|
190
|
+
<input
|
|
191
|
+
type="radio"
|
|
192
|
+
name="report-type"
|
|
193
|
+
value="1"
|
|
194
|
+
class="form-selectgroup-input"
|
|
195
|
+
checked
|
|
196
|
+
/>
|
|
197
|
+
<span class="form-selectgroup-label d-flex align-items-center p-3">
|
|
198
|
+
<span class="me-3">
|
|
199
|
+
<span class="form-selectgroup-check"></span>
|
|
200
|
+
</span>
|
|
201
|
+
<span class="form-selectgroup-label-content">
|
|
202
|
+
<span class="form-selectgroup-title strong mb-1">Simple</span>
|
|
203
|
+
<span class="d-block text-secondary"
|
|
204
|
+
>Provide only basic data needed for the report</span
|
|
205
|
+
>
|
|
206
|
+
</span>
|
|
207
|
+
</span>
|
|
208
|
+
</label>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="col-md-6">
|
|
211
|
+
<label class="form-selectgroup-item">
|
|
212
|
+
<input type="radio" name="report-type" value="1" class="form-selectgroup-input" />
|
|
213
|
+
<span class="form-selectgroup-label d-flex align-items-center p-3">
|
|
214
|
+
<span class="me-3">
|
|
215
|
+
<span class="form-selectgroup-check"></span>
|
|
216
|
+
</span>
|
|
217
|
+
<span class="form-selectgroup-label-content">
|
|
218
|
+
<span class="form-selectgroup-title strong mb-1">Advanced</span>
|
|
219
|
+
<span class="d-block text-secondary"
|
|
220
|
+
>Insert charts and additional advanced analyses to be inserted in the
|
|
221
|
+
report</span
|
|
222
|
+
>
|
|
223
|
+
</span>
|
|
224
|
+
</span>
|
|
225
|
+
</label>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="row">
|
|
229
|
+
<div class="col-lg-8">
|
|
230
|
+
<div class="mb-3">
|
|
231
|
+
<label class="form-label">Report url</label>
|
|
232
|
+
<div class="input-group input-group-flat">
|
|
233
|
+
<span class="input-group-text"> https://tabler.io/reports/ </span>
|
|
234
|
+
<input type="text" class="form-control ps-0" value="report-01" autocomplete="off" />
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="col-lg-4">
|
|
239
|
+
<div class="mb-3">
|
|
240
|
+
<label class="form-label">Visibility</label>
|
|
241
|
+
<select class="form-select">
|
|
242
|
+
<option value="1" selected>Private</option>
|
|
243
|
+
<option value="2">Public</option>
|
|
244
|
+
<option value="3">Hidden</option>
|
|
245
|
+
</select>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
<div class="modal-body">
|
|
251
|
+
<div class="row">
|
|
252
|
+
<div class="col-lg-6">
|
|
253
|
+
<div class="mb-3">
|
|
254
|
+
<label class="form-label">Client name</label>
|
|
255
|
+
<input type="text" class="form-control" />
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="col-lg-6">
|
|
259
|
+
<div class="mb-3">
|
|
260
|
+
<label class="form-label">Reporting period</label>
|
|
261
|
+
<input type="date" class="form-control" />
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
<div class="col-lg-12">
|
|
265
|
+
<div>
|
|
266
|
+
<label class="form-label">Additional information</label>
|
|
267
|
+
<textarea class="form-control" rows="3"></textarea>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
<div class="modal-footer">
|
|
273
|
+
<a href="#" class="btn btn-link link-secondary" data-bs-dismiss="modal"> Cancel </a>
|
|
274
|
+
<a href="#" class="btn btn-primary ms-auto" data-bs-dismiss="modal">
|
|
275
|
+
<svg
|
|
276
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
277
|
+
class="icon icon-tabler icon-tabler-plus"
|
|
278
|
+
width="24"
|
|
279
|
+
height="24"
|
|
280
|
+
viewBox="0 0 24 24"
|
|
281
|
+
stroke-width="2"
|
|
282
|
+
stroke="currentColor"
|
|
283
|
+
fill="none"
|
|
284
|
+
stroke-linecap="round"
|
|
285
|
+
stroke-linejoin="round"
|
|
286
|
+
>
|
|
287
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
288
|
+
<path d="M12 5l0 14"></path>
|
|
289
|
+
<path d="M5 12l14 0"></path>
|
|
290
|
+
</svg>
|
|
291
|
+
Create new report
|
|
292
|
+
</a>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
15
|
+
elements here.
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Look at the example below to see how the offcanvas works.
|
|
21
|
+
|
|
22
|
+
```html example vendors height="25rem"
|
|
23
|
+
<div
|
|
24
|
+
class="offcanvas offcanvas-start show"
|
|
25
|
+
tabindex="-1"
|
|
26
|
+
id="offcanvas"
|
|
27
|
+
aria-labelledby="offcanvasLabel"
|
|
28
|
+
>
|
|
29
|
+
<div class="offcanvas-body">
|
|
30
|
+
Content for the offcanvas goes here. You can place just about any Tabler component or custom
|
|
31
|
+
elements here.
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Cookies banner
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
```html example vendors height="25rem"
|
|
41
|
+
<div
|
|
42
|
+
class="offcanvas offcanvas-bottom h-auto show"
|
|
43
|
+
tabindex="-1"
|
|
44
|
+
id="offcanvasBottom"
|
|
45
|
+
aria-modal="true"
|
|
46
|
+
role="dialog"
|
|
47
|
+
>
|
|
48
|
+
<div class="offcanvas-body">
|
|
49
|
+
<div class="container">
|
|
50
|
+
<div class="row align-items-center">
|
|
51
|
+
<div class="col">
|
|
52
|
+
<strong>Do you like cookies?</strong> 🍪 We use cookies to ensure you get the best
|
|
53
|
+
experience on our website.
|
|
54
|
+
<a href="./terms-of-service.html" target="_blank">Learn more</a>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-auto">
|
|
57
|
+
<button type="button" class="btn btn-primary" data-bs-dismiss="offcanvas">
|
|
58
|
+
Essential Cookies Only
|
|
59
|
+
</button>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-auto">
|
|
62
|
+
<button type="button" class="btn btn-primary" data-bs-dismiss="offcanvas">
|
|
63
|
+
Allow All Cookies
|
|
64
|
+
</button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
```
|