@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,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Cards
|
|
3
|
-
|
|
3
|
+
summary: Cards are flexible user interface elements, which help organize content into meaningful sections and make it easier to display on different screen sizes. Cards contain various smaller components, such as images, text, links and buttons and may act as an entry to more detailed information, helping users scan the page quickly and find the most relevant content.
|
|
4
4
|
bootstrapLink: components/card/
|
|
5
|
+
description: Organize content with flexible cards.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default card
|
|
8
9
|
|
|
9
10
|
Use the `.card` and `.card-body` classes to create a card and use it as the basis for a more advanced card design. A card is a perfect way to organize content and make it look neat and tidy.
|
|
10
11
|
|
|
11
|
-
```html example
|
|
12
|
+
```html example centered columns={1} background="base"
|
|
12
13
|
<div class="card">
|
|
13
14
|
<div class="card-body">
|
|
14
15
|
<p>This is some text within a card body.</p>
|
|
@@ -22,7 +23,7 @@ You can change the padding of a newly created card. To do it, use the `.card-sm`
|
|
|
22
23
|
|
|
23
24
|
Cards with the `.card-sm` class are well suited for small items such as widgets, etc., while the `.card-lg` class can be used for large blocks of text. Padding will be automatically reduced on small devices, to fit the screen size.
|
|
24
25
|
|
|
25
|
-
```html example vertical centered separated height={500}
|
|
26
|
+
```html example vertical centered separated height={500} background="base"
|
|
26
27
|
<div class="card card-sm">
|
|
27
28
|
<div class="card-body">
|
|
28
29
|
This is some text within a card body.
|
|
@@ -56,7 +57,7 @@ Cards with the `.card-sm` class are well suited for small items such as widgets,
|
|
|
56
57
|
|
|
57
58
|
Add a title to your card by including the `.card-title` class within `.card-body`. You can also place the title inside the `.card-header` element to separate the title from the content with a horizontal line.
|
|
58
59
|
|
|
59
|
-
```html
|
|
60
|
+
```html example vertical centered separated height={400} background="base"
|
|
60
61
|
<div class="card">
|
|
61
62
|
<div class="card-body">
|
|
62
63
|
<h3 class="card-title">Card title</h3>
|
|
@@ -77,7 +78,7 @@ Add a title to your card by including the `.card-title` class within `.card-body
|
|
|
77
78
|
|
|
78
79
|
To create a more visually appealing card, add a title and an image. Thanks to that, the card will go well with your interface design and draw users' attention.
|
|
79
80
|
|
|
80
|
-
```html example centered columns={1} height={500}
|
|
81
|
+
```html example centered columns={1} height={500} background="base"
|
|
81
82
|
<div class="card">
|
|
82
83
|
<!-- Photo -->
|
|
83
84
|
<div class="img-responsive img-responsive-21x9 card-img-top" style="background-image: url(/samples/photos/cup-of-coffee-and-an-open-book.jpg)"></div>
|
|
@@ -93,13 +94,15 @@ To create a more visually appealing card, add a title and an image. Thanks to th
|
|
|
93
94
|
|
|
94
95
|
Add an image to your blog post card to make it eye-catching. You can do it by adding the image in the `.card-img-top` class. Thanks to the `.d-flex` and `.flex-column` classes within `.card-body`, the author details will be displayed at the bottom of the card.
|
|
95
96
|
|
|
96
|
-
```html example centered columns={1} height={600}
|
|
97
|
+
```html example centered columns={1} height={600} background="base"
|
|
97
98
|
<div class="card d-flex flex-column">
|
|
98
99
|
<a href="#">
|
|
99
100
|
<img class="card-img-top" src="/samples/photos/book-on-the-grass.jpg" alt="" />
|
|
100
101
|
</a>
|
|
101
102
|
<div class="card-body d-flex flex-column">
|
|
102
|
-
<h3 class="card-title"
|
|
103
|
+
<h3 class="card-title">
|
|
104
|
+
<a href="#">How do you know she is a witch?</a>
|
|
105
|
+
</h3>
|
|
103
106
|
<div class="text-secondary">Are you suggesting that coconuts migrate? No, no, no! Yes, yes. A bit. But she's got a wart. You ...</div>
|
|
104
107
|
<div class="d-flex align-items-center pt-4 mt-auto">
|
|
105
108
|
<span class="avatar" style="background-image: url(/samples/avatars/023m.jpg)"></span>
|
|
@@ -123,7 +126,7 @@ Add an image to your blog post card to make it eye-catching. You can do it by ad
|
|
|
123
126
|
|
|
124
127
|
Add the `.row-deck` class to `.row`, if you want to display several cards next to one another. Thanks to that, they will all have the same height.
|
|
125
128
|
|
|
126
|
-
```html
|
|
129
|
+
```html example centered height="220px" background="base"
|
|
127
130
|
<div class="row row-deck">
|
|
128
131
|
<div class="col-md-4">
|
|
129
132
|
<div class="card">
|
|
@@ -147,7 +150,7 @@ Add the `.row-deck` class to `.row`, if you want to display several cards next t
|
|
|
147
150
|
|
|
148
151
|
You can also add an image on the left side of the card. To do it, add the `.card-aside` class to the element with the `.card` class. Then add the image in the `.card-aside-column` element and it will be automatically centered and scaled to the right size.
|
|
149
152
|
|
|
150
|
-
```html example columns={2} centered height={400}
|
|
153
|
+
```html example columns={2} centered height={400} background="base"
|
|
151
154
|
<div class="card d-flex flex-column">
|
|
152
155
|
<div class="row row-0 flex-fill">
|
|
153
156
|
<div class="col-md-3">
|
|
@@ -157,7 +160,9 @@ You can also add an image on the left side of the card. To do it, add the `.card
|
|
|
157
160
|
</div>
|
|
158
161
|
<div class="col">
|
|
159
162
|
<div class="card-body">
|
|
160
|
-
<h3 class="card-title"
|
|
163
|
+
<h3 class="card-title">
|
|
164
|
+
<a href="#">Shut up!</a>
|
|
165
|
+
</h3>
|
|
161
166
|
<div class="text-secondary">Burn her! How do you know she is a witch? You don't frighten us, English pig-dogs! Go and boil yo...</div>
|
|
162
167
|
<div class="d-flex align-items-center pt-4 mt-auto">
|
|
163
168
|
<span class="avatar" style="background-image: url(/samples/avatars/029m.jpg)"></span>
|
|
@@ -183,7 +188,7 @@ You can also add an image on the left side of the card. To do it, add the `.card
|
|
|
183
188
|
|
|
184
189
|
Add a status color to your card, either at the top or on the side of the card, to customise it and make it more eye-catching.
|
|
185
190
|
|
|
186
|
-
```html example columns={2} centered height={400}
|
|
191
|
+
```html example columns={2} centered height={400} background="base"
|
|
187
192
|
<div class="row row-deck">
|
|
188
193
|
<div class="col-md-6">
|
|
189
194
|
<div class="card">
|
|
@@ -212,17 +217,17 @@ Add a status color to your card, either at the top or on the side of the card, t
|
|
|
212
217
|
<div class="card">
|
|
213
218
|
<div class="card-status-top bg-danger"></div>
|
|
214
219
|
<div class="card-body">
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
<h3 class="card-title">Card with top status</h3>
|
|
221
|
+
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima
|
|
222
|
+
neque pariatur perferendis sed suscipit velit vitae voluptatem.</p>
|
|
218
223
|
</div>
|
|
219
224
|
</div>
|
|
220
225
|
<div class="card">
|
|
221
226
|
<div class="card-status-start bg-green"></div>
|
|
222
227
|
<div class="card-body">
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
<h3 class="card-title">Card with side status</h3>
|
|
229
|
+
<p class="text-secondary">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima
|
|
230
|
+
neque pariatur perferendis sed suscipit velit vitae voluptatem.</p>
|
|
226
231
|
</div>
|
|
227
232
|
</div>
|
|
228
233
|
```
|
|
@@ -231,7 +236,7 @@ Add a status color to your card, either at the top or on the side of the card, t
|
|
|
231
236
|
|
|
232
237
|
Use the `card-stacked` class to stack up multiple cards, if you want to save screen space or create a visually appealing effect.
|
|
233
238
|
|
|
234
|
-
```html
|
|
239
|
+
```html example columns={1} centered height={300} background="base"
|
|
235
240
|
<div class="card card-stacked">
|
|
236
241
|
<div class="card-body">
|
|
237
242
|
<h3 class="card-title">Stacked card</h3>
|
|
@@ -245,13 +250,21 @@ Use the `card-stacked` class to stack up multiple cards, if you want to save scr
|
|
|
245
250
|
|
|
246
251
|
Organize multiple cards into tabs to be able to display more content in a well-organized way and allow users to alternate between them easily.
|
|
247
252
|
|
|
248
|
-
```html example columns={2} centered height={400}
|
|
253
|
+
```html example columns={2} centered height={400} background="base"
|
|
249
254
|
<div class="card-tabs">
|
|
250
255
|
<ul class="nav nav-tabs">
|
|
251
|
-
<li class="nav-item"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<li class="nav-item"
|
|
256
|
+
<li class="nav-item">
|
|
257
|
+
<a href="#tab-top-1" class="nav-link active" data-bs-toggle="tab">Tab 1</a>
|
|
258
|
+
</li>
|
|
259
|
+
<li class="nav-item">
|
|
260
|
+
<a href="#tab-top-2" class="nav-link" data-bs-toggle="tab">Tab 2</a>
|
|
261
|
+
</li>
|
|
262
|
+
<li class="nav-item">
|
|
263
|
+
<a href="#tab-top-3" class="nav-link" data-bs-toggle="tab">Tab 3</a>
|
|
264
|
+
</li>
|
|
265
|
+
<li class="nav-item">
|
|
266
|
+
<a href="#tab-top-4" class="nav-link" data-bs-toggle="tab">Tab 4</a>
|
|
267
|
+
</li>
|
|
255
268
|
</ul>
|
|
256
269
|
<div class="tab-content">
|
|
257
270
|
<div id="tab-top-1" class="card tab-pane active show">
|
|
@@ -295,10 +308,18 @@ Organize multiple cards into tabs to be able to display more content in a well-o
|
|
|
295
308
|
<div class="card-tabs">
|
|
296
309
|
<!-- Cards navigation -->
|
|
297
310
|
<ul class="nav nav-tabs">
|
|
298
|
-
<li class="nav-item"
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
<li class="nav-item"
|
|
311
|
+
<li class="nav-item">
|
|
312
|
+
<a href="#tab-top-1" class="nav-link active" data-bs-toggle="tab">Tab 1</a>
|
|
313
|
+
</li>
|
|
314
|
+
<li class="nav-item">
|
|
315
|
+
<a href="#tab-top-2" class="nav-link" data-bs-toggle="tab">Tab 2</a>
|
|
316
|
+
</li>
|
|
317
|
+
<li class="nav-item">
|
|
318
|
+
<a href="#tab-top-3" class="nav-link" data-bs-toggle="tab">Tab 3</a>
|
|
319
|
+
</li>
|
|
320
|
+
<li class="nav-item">
|
|
321
|
+
<a href="#tab-top-4" class="nav-link" data-bs-toggle="tab">Tab 4</a>
|
|
322
|
+
</li>
|
|
302
323
|
</ul>
|
|
303
324
|
<div class="tab-content">
|
|
304
325
|
<!-- Content of card #1 -->
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Carousel
|
|
3
|
-
|
|
3
|
+
summary: A carousel is used to display multiple pieces of visual content without taking up too much space. Carousels eliminate the need to scroll down the page to see all content and are a popular method of displaying marketing information.
|
|
4
4
|
bootstrapLink: components/carousel/
|
|
5
|
+
description: Display visual content with carousels.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
## Default markup
|
|
8
9
|
|
|
9
10
|
Use a carousel to make your website design more visually appealing for users. In the default carousel design, respective elements slide automatically and users can go to the next slide by clicking an arrow.
|
|
10
11
|
|
|
11
|
-
```html
|
|
12
|
+
```html example centered columns={2} height="35rem"
|
|
12
13
|
<div id="carousel-sample" class="carousel slide" data-bs-ride="carousel">
|
|
13
14
|
<div class="carousel-indicators">
|
|
14
15
|
<button type="button" data-bs-target="#carousel-sample" data-bs-slide-to="0" class="active"></button>
|
|
@@ -49,7 +50,7 @@ Use a carousel to make your website design more visually appealing for users. In
|
|
|
49
50
|
|
|
50
51
|
You can replace the standard indicators with dots. Just add the `carousel-indicators-dot` class to your carousel:
|
|
51
52
|
|
|
52
|
-
```html
|
|
53
|
+
```html example centered columns={2} height="35rem"
|
|
53
54
|
<div id="carousel-indicators-dot" class="carousel slide carousel-fade" data-bs-ride="carousel">
|
|
54
55
|
<div class="carousel-indicators carousel-indicators-dot">
|
|
55
56
|
<button type="button" data-bs-target="#carousel-indicators-dot" data-bs-slide-to="0" class="active"></button>
|
|
@@ -82,7 +83,7 @@ You can replace the standard indicators with dots. Just add the `carousel-indica
|
|
|
82
83
|
|
|
83
84
|
The syntax is similar with thumbnails. Add class `carousel-indicators-thumb` and add `background-image` to element `[data-bs-target]`. Default thumbnails have an aspect ratio of 1:1. To change this use `ratio` utils.
|
|
84
85
|
|
|
85
|
-
```html example
|
|
86
|
+
```html example centered columns={2} height="35rem"
|
|
86
87
|
<div id="carousel-indicators-thumb" class="carousel slide carousel-fade" data-bs-ride="carousel">
|
|
87
88
|
<div class="carousel-indicators carousel-indicators-thumb">
|
|
88
89
|
<button type="button" data-bs-target="#carousel-indicators-thumb" data-bs-slide-to="0" class="ratio ratio-4x3 active" style="background-image: url(/samples/photos/group-of-people-sightseeing-in-the-city.jpg)"></button>
|
|
@@ -115,7 +116,7 @@ The syntax is similar with thumbnails. Add class `carousel-indicators-thumb` and
|
|
|
115
116
|
|
|
116
117
|
To make the indicators go to the right side, add the `carousel-indicators-vertical` class. You can combine it with other classes that are responsible for dots or thumbnails.
|
|
117
118
|
|
|
118
|
-
```html
|
|
119
|
+
```html example centered columns={2} height="35rem"
|
|
119
120
|
<div id="carousel-indicators-dot-vertical" class="carousel slide carousel-fade" data-bs-ride="carousel">
|
|
120
121
|
<div class="carousel-indicators carousel-indicators-vertical carousel-indicators-dot">
|
|
121
122
|
<button type="button" data-bs-target="#carousel-indicators-dot-vertical" data-bs-slide-to="0" class="active"></button>
|
|
@@ -146,7 +147,7 @@ To make the indicators go to the right side, add the `carousel-indicators-vertic
|
|
|
146
147
|
|
|
147
148
|
Likewise, you can add thumbnails on the right side:
|
|
148
149
|
|
|
149
|
-
```html
|
|
150
|
+
```html example centered columns={2} height="35rem"
|
|
150
151
|
<div id="carousel-indicators-thumb-vertical" class="carousel slide carousel-fade" data-bs-ride="carousel">
|
|
151
152
|
<div class="carousel-indicators carousel-indicators-vertical carousel-indicators-thumb">
|
|
152
153
|
<button type="button" data-bs-target="#carousel-indicators-thumb-vertical" data-bs-slide-to="0" class="ratio ratio-4x3 active" style="background-image: url(/samples/photos/finances-us-dollars-and-bitcoins-currency-money.jpg)"></button>
|
|
@@ -179,7 +180,7 @@ Likewise, you can add thumbnails on the right side:
|
|
|
179
180
|
|
|
180
181
|
Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. To make the text more readable on the image you can add `carousel-caption-background` which will add a black overlay over the image.
|
|
181
182
|
|
|
182
|
-
```html
|
|
183
|
+
```html example centered columns={2} height="35rem"
|
|
183
184
|
<div id="carousel-captions" class="carousel slide" data-bs-ride="carousel">
|
|
184
185
|
<div class="carousel-inner">
|
|
185
186
|
<div class="carousel-item active">
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Charts
|
|
3
3
|
libs: apexcharts
|
|
4
|
-
|
|
4
|
+
summary: Tabler uses ApexCharts - a free and open-source modern charting library that helps developers to create beautiful and interactive visualizations for web pages.
|
|
5
|
+
description: Interactive data visualizations with ApexCharts.
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
To be able to use the charts in your application you will need to install the apexcharts dependency with `npm install apexcharts`.
|
|
@@ -10,16 +11,14 @@ See also the [ApexCharts](https://apexcharts.com/) documentation.
|
|
|
10
11
|
|
|
11
12
|
## Line Chart
|
|
12
13
|
|
|
13
|
-
Line charts are
|
|
14
|
+
Line charts are an essential tool for visualizing data trends over time. They are particularly useful for representing continuous data, such as stock prices, website traffic, or user activity. Below is an example of a line chart showcasing session duration, page views, and total visits:
|
|
14
15
|
|
|
15
|
-
```html example
|
|
16
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
16
17
|
<div class="card">
|
|
17
18
|
<div class="card-body">
|
|
18
19
|
<div id="chart-demo-line" class="chart-lg"></div>
|
|
19
20
|
</div>
|
|
20
21
|
</div>
|
|
21
|
-
|
|
22
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
23
22
|
<script>
|
|
24
23
|
document.addEventListener("DOMContentLoaded", function() {
|
|
25
24
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-demo-line'), {
|
|
@@ -104,16 +103,14 @@ Line charts are a typical pictorial representation that depicts trends and behav
|
|
|
104
103
|
|
|
105
104
|
## Area Chart
|
|
106
105
|
|
|
107
|
-
Area charts are
|
|
106
|
+
Area charts are ideal for representing cumulative data over time. They add visual emphasis to trends by filling the space under the line, making it easier to compare values. Here's an example of an area chart with smooth transitions and data from two series:
|
|
108
107
|
|
|
109
|
-
```html example
|
|
108
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
110
109
|
<div class="card">
|
|
111
110
|
<div class="card-body">
|
|
112
111
|
<div id="chart-demo-area" class="chart-lg"></div>
|
|
113
112
|
</div>
|
|
114
113
|
</div>
|
|
115
|
-
|
|
116
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
117
114
|
<script>
|
|
118
115
|
document.addEventListener("DOMContentLoaded", function() {
|
|
119
116
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-demo-area'), {
|
|
@@ -202,16 +199,14 @@ Area charts are used to represent quantitative variations.
|
|
|
202
199
|
|
|
203
200
|
## Bar Chart
|
|
204
201
|
|
|
205
|
-
|
|
202
|
+
Bar charts are highly effective for comparing data across different categories. They provide a clear and concise way to visualize differences in values, making them perfect for analyzing categorical data. Here's an example of a bar chart with stacked bars for enhanced readability:
|
|
206
203
|
|
|
207
|
-
```html example
|
|
204
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
208
205
|
<div class="card">
|
|
209
206
|
<div class="card-body">
|
|
210
207
|
<div id="chart-demo-bar" class="chart-lg"></div>
|
|
211
208
|
</div>
|
|
212
209
|
</div>
|
|
213
|
-
|
|
214
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
215
210
|
<script>
|
|
216
211
|
document.addEventListener("DOMContentLoaded", function() {
|
|
217
212
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-demo-bar'), {
|
|
@@ -310,16 +305,14 @@ A bar chart is the best tool for displaying comparisons between categories of da
|
|
|
310
305
|
|
|
311
306
|
## Pie Chart
|
|
312
307
|
|
|
313
|
-
Pie charts are
|
|
308
|
+
Pie charts are a simple and effective way to visualize proportions and ratios. They are commonly used to represent data as percentages of a whole, making them ideal for displaying parts of a dataset. Below is an example of a pie chart showcasing distribution across categories:
|
|
314
309
|
|
|
315
|
-
```html example
|
|
310
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
316
311
|
<div class="card">
|
|
317
312
|
<div class="card-body">
|
|
318
313
|
<div id="chart-demo-pie" class="chart-lg"></div>
|
|
319
314
|
</div>
|
|
320
315
|
</div>
|
|
321
|
-
|
|
322
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
323
316
|
<script>
|
|
324
317
|
document.addEventListener("DOMContentLoaded", function() {
|
|
325
318
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-demo-pie'), {
|
|
@@ -370,16 +363,14 @@ Pie charts are an instrumental visualization tool useful in expressing data and
|
|
|
370
363
|
|
|
371
364
|
## Heatmap Chart
|
|
372
365
|
|
|
373
|
-
|
|
366
|
+
Heatmaps provide a graphical representation of data where individual values are represented by color intensity. They are particularly useful for identifying patterns or anomalies within large datasets. Here's an example of a heatmap chart to visualize data distributions:
|
|
374
367
|
|
|
375
|
-
```html example
|
|
368
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
376
369
|
<div class="card">
|
|
377
370
|
<div class="card-body">
|
|
378
371
|
<div id="chart-demo-pie" class="chart-lg"></div>
|
|
379
372
|
</div>
|
|
380
373
|
</div>
|
|
381
|
-
|
|
382
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
383
374
|
<script>
|
|
384
375
|
document.addEventListener("DOMContentLoaded", function() {
|
|
385
376
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-demo-pie'), {
|
|
@@ -430,14 +421,14 @@ Heatmap is a visualization tool that employs color the way a bar chart employs h
|
|
|
430
421
|
|
|
431
422
|
## Advanced example
|
|
432
423
|
|
|
433
|
-
|
|
424
|
+
For more complex data visualizations, you can create advanced charts with multiple series and custom configurations. Below is an example of a social media referrals chart combining data from Facebook, Twitter, and Dribbble:
|
|
425
|
+
|
|
426
|
+
```html example centered columns={2} height="25rem" background="surface" libs="apexcharts"
|
|
434
427
|
<div class="card">
|
|
435
428
|
<div class="card-body">
|
|
436
429
|
<div id="chart-social-referrals" class="chart-lg"></div>
|
|
437
430
|
</div>
|
|
438
431
|
</div>
|
|
439
|
-
|
|
440
|
-
<script src="$TABLER_CDN/dist/libs/apexcharts/dist/apexcharts.min.js" defer></script>
|
|
441
432
|
<script>
|
|
442
433
|
document.addEventListener("DOMContentLoaded", function() {
|
|
443
434
|
window.ApexCharts && (new ApexCharts(document.getElementById('chart-social-referrals'), {
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Countup
|
|
3
|
-
|
|
3
|
+
summary: A countup element is used to display numerical data in an interesting way and make the interface more interactive.
|
|
4
4
|
libs: countup
|
|
5
|
+
description: Display numbers dynamically with countups.
|
|
5
6
|
---
|
|
6
7
|
|
|
8
|
+
The countup component is used to display numbers dynamically. It is a great way to make the interface more interactive and engaging. The countup component is a simple and easy way to animate numbers in your application.
|
|
9
|
+
|
|
7
10
|
To be able to use the countup in your application you will need to install the countup.js dependency with `npm install countup.js`.
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
For more advanced features of countups, click [here](https://inorganik.github.io/countUp.js/) and see what more you can do.
|
|
13
|
+
|
|
14
|
+
## Basic usage
|
|
10
15
|
|
|
11
16
|
To create a countup, add `data-countup` to any HTML text tag and specify the number which is to be reached. The animation will be triggered as soon as the number enters the viewport.
|
|
12
17
|
|
|
13
|
-
```html
|
|
14
|
-
<
|
|
18
|
+
```html
|
|
19
|
+
<h1 data-countup>30000</h1>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The results can be seen in the example below.
|
|
15
23
|
|
|
24
|
+
```html example libs="countup" centered
|
|
16
25
|
<h1 data-countup>30000</h1>
|
|
17
26
|
```
|
|
18
27
|
|
|
@@ -20,9 +29,13 @@ To create a countup, add `data-countup` to any HTML text tag and specify the num
|
|
|
20
29
|
|
|
21
30
|
Set the `duration` to determine how long the animation should take. By default, the duration is set to 2 seconds, but you can modify it as you wish.
|
|
22
31
|
|
|
23
|
-
```html
|
|
24
|
-
<
|
|
32
|
+
```html
|
|
33
|
+
<h1 data-countup='{"duration":4}'>30000</h1>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Look at the example below to see how the duration affects the animation.
|
|
25
37
|
|
|
38
|
+
```html example libs="countup" centered vertical separated
|
|
26
39
|
<h1 data-countup>30000</h1>
|
|
27
40
|
<h1 data-countup='{"duration":4}'>30000</h1>
|
|
28
41
|
<h1 data-countup='{"duration":6}'>30000</h1>
|
|
@@ -33,20 +46,28 @@ Set the `duration` to determine how long the animation should take. By default,
|
|
|
33
46
|
By default the countup will start from zero. If you want to set a different start value use `startVal`.
|
|
34
47
|
You can also set the start value to be greater than the final value, so that it counts down instead of up.
|
|
35
48
|
|
|
36
|
-
```html
|
|
37
|
-
<
|
|
49
|
+
```html
|
|
50
|
+
<h1 data-countup='{"startVal":12345}'>30000</h1>
|
|
51
|
+
```
|
|
38
52
|
|
|
53
|
+
To see how the starting value affects the animation, look at the example below.
|
|
54
|
+
|
|
55
|
+
```html example libs="countup" centered vertical separated
|
|
39
56
|
<h1 data-countup='{"startVal":12345}'>30000</h1>
|
|
40
57
|
<h1 data-countup='{"startVal":47655}'>30000</h1>
|
|
41
58
|
```
|
|
42
59
|
|
|
43
60
|
## Decimal places
|
|
44
61
|
|
|
45
|
-
Set how many decimal numbers should be displayed using `decimalPlaces`.
|
|
62
|
+
Set how many decimal numbers should be displayed using `decimalPlaces`. By default, the number of decimal places is set to 0.
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<h1 data-countup='{"decimalPlaces":1}'>3.123</h1>
|
|
66
|
+
```
|
|
46
67
|
|
|
47
|
-
|
|
48
|
-
<script src="$TABLER_CDN/dist/libs/countup.js/dist/countUp.js"></script>
|
|
68
|
+
Look at the example below to see how the number of decimal places affects the animation.
|
|
49
69
|
|
|
70
|
+
```html example libs="countup" centered vertical separated height="20rem"
|
|
50
71
|
<h1 data-countup>3.123</h1>
|
|
51
72
|
<h1 data-countup='{"decimalPlaces":1}'>3.123</h1>
|
|
52
73
|
<h1 data-countup='{"decimalPlaces":2}'>3.123</h1>
|
|
@@ -55,82 +76,90 @@ Set how many decimal numbers should be displayed using `decimalPlaces`.
|
|
|
55
76
|
|
|
56
77
|
## Easing
|
|
57
78
|
|
|
58
|
-
Disable easing using `"useEasing": false`. Easing is set to `true` by default, so that the animation speed changes over the course of its duration.
|
|
79
|
+
Disable easing using `"useEasing": false`. Easing is set to `true` by default, so that the animation speed changes over the course of its duration. Easing can be disabled to make the animation linear.
|
|
59
80
|
|
|
60
|
-
```html
|
|
61
|
-
<
|
|
81
|
+
```html
|
|
82
|
+
<h1 data-countup='{"useEasing": false}'>30000</h1>
|
|
83
|
+
```
|
|
62
84
|
|
|
85
|
+
Look at the example below to see how easing affects the animation.
|
|
86
|
+
|
|
87
|
+
```html example libs="countup" centered vertical separated
|
|
63
88
|
<h1 data-countup>30000</h1>
|
|
64
89
|
<h1 data-countup='{"useEasing": false}'>30000</h1>
|
|
65
90
|
```
|
|
66
91
|
|
|
67
92
|
## Use grouping
|
|
68
93
|
|
|
69
|
-
Disable grouping using `"useGrouping": false`. Grouping is set to `true` by default
|
|
94
|
+
Disable grouping using `"useGrouping": false`. Grouping is set to `true` by default, so that the number is displayed with a separator.
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<h1 data-countup='{"useGrouping": false}'>30000</h1>
|
|
98
|
+
```
|
|
70
99
|
|
|
71
|
-
|
|
72
|
-
<script src="$TABLER_CDN/dist/libs/countup.js/dist/countUp.js"></script>
|
|
100
|
+
Example below shows how grouping affects the animation.
|
|
73
101
|
|
|
102
|
+
```html example libs="countup" centered vertical separated
|
|
74
103
|
<h1 data-countup>30000</h1>
|
|
75
104
|
<h1 data-countup='{"useGrouping": false}'>30000</h1>
|
|
76
105
|
```
|
|
77
106
|
|
|
78
107
|
## Separator
|
|
79
108
|
|
|
80
|
-
You can change the default
|
|
109
|
+
You can change the default separator using `separator` and specifying the one you wish to use.
|
|
81
110
|
|
|
82
|
-
```html
|
|
83
|
-
<
|
|
111
|
+
```html
|
|
112
|
+
<h1 data-countup='{"separator":" "}'>3000000</h1>
|
|
113
|
+
```
|
|
84
114
|
|
|
115
|
+
This example shows how the separator affects the animation.
|
|
116
|
+
|
|
117
|
+
```html example libs="countup" centered vertical separated
|
|
85
118
|
<h1 data-countup>3000000</h1>
|
|
86
119
|
<h1 data-countup='{"separator":" "}'>3000000</h1>
|
|
87
|
-
<h1 data-countup='{"separator":"-"}'>3000000</h1>
|
|
88
|
-
<h1 data-countup='{"separator":":"}'>3000000</h1>
|
|
89
120
|
```
|
|
90
121
|
|
|
91
122
|
## Decimal separator
|
|
92
123
|
|
|
93
|
-
You can
|
|
124
|
+
You can change the default decimal separator using `decimal` and specifying the one you wish to use.
|
|
94
125
|
|
|
95
|
-
```html
|
|
96
|
-
<
|
|
126
|
+
```html
|
|
127
|
+
<h1 data-countup='{"decimal":","}'>3.12</h1>
|
|
128
|
+
```
|
|
97
129
|
|
|
130
|
+
Look at the example below to see how the decimal separator affects the animation.
|
|
131
|
+
|
|
132
|
+
```html example libs="countup" centered vertical separated
|
|
98
133
|
<h1 data-countup='{"decimalPlaces":2}'>3.12</h1>
|
|
99
|
-
<h1 data-countup='{"decimalPlaces":2,"decimal":"
|
|
100
|
-
<h1 data-countup='{"decimalPlaces":2,"decimal":"^"}'>3.12</h1>
|
|
101
|
-
<h1 data-countup='{"decimalPlaces":2,"decimal":":"}'>3.12</h1>
|
|
134
|
+
<h1 data-countup='{"decimalPlaces":2,"decimal":","}'>3.12</h1>
|
|
102
135
|
```
|
|
103
136
|
|
|
104
137
|
## Prefix
|
|
105
138
|
|
|
106
139
|
Set the countup prefix using `prefix` and specifying the prefix you want to add, for instance a currency symbol.
|
|
107
140
|
|
|
108
|
-
```html
|
|
109
|
-
<
|
|
141
|
+
```html
|
|
142
|
+
<h1 data-countup='{"prefix":"$"}'>30000</h1>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Look at the example below to see how the prefix affects the animation.
|
|
110
146
|
|
|
147
|
+
```html example libs="countup" centered vertical separated
|
|
111
148
|
<h1 data-countup='{"prefix":"$"}'>30000</h1>
|
|
112
149
|
<h1 data-countup='{"prefix":"€"}'>30000</h1>
|
|
113
|
-
<h1 data-countup='{"prefix":"£"}'>30000</h1>
|
|
114
150
|
```
|
|
115
151
|
|
|
116
152
|
## Suffix
|
|
117
153
|
|
|
118
|
-
Set the countup suffix using `suffix
|
|
154
|
+
Set the countup suffix using `suffix` and specifying the suffix you want to add, for instance a percentage symbol.
|
|
119
155
|
|
|
120
|
-
```html
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
<h1 data-countup='{"suffix":"%"}'>30</h1>
|
|
124
|
-
<h1 data-countup='{"suffix":"‰"}'>30</h1>
|
|
125
|
-
<h1 data-countup='{"suffix":"k"}'>30</h1>
|
|
156
|
+
```html
|
|
157
|
+
<h1 data-countup='{"suffix":"%"}'>300</h1>
|
|
126
158
|
```
|
|
127
159
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
```html code example
|
|
131
|
-
<script src="$TABLER_CDN/dist/libs/countup.js/dist/countUp.js"></script>
|
|
160
|
+
Look at the example below to see how the suffix affects the animation.
|
|
132
161
|
|
|
133
|
-
|
|
162
|
+
```html example libs="countup" centered vertical separated
|
|
163
|
+
<h1 data-countup='{"suffix":"%"}'>300</h1>
|
|
164
|
+
<h1 data-countup='{"suffix":"‰"}'>300</h1>
|
|
134
165
|
```
|
|
135
|
-
|
|
136
|
-
For more advanced features of countups, click [**here**](https://inorganik.github.io/countUp.js/) and see what more you can do.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Data grid
|
|
3
|
-
|
|
3
|
+
summary: Use the data grid component to display detailed information about your product. The data is displayed as a column of items consisting of a title and content.
|
|
4
|
+
description: Detailed product information in grids.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
```html example
|
|
7
|
+
```html example vcentered height="460px"
|
|
7
8
|
<div class="datagrid">
|
|
8
9
|
<div class="datagrid-item">
|
|
9
10
|
<div class="datagrid-title">Registrar</div>
|
|
@@ -88,3 +89,10 @@ description: Use the data grid component to display detailed information about y
|
|
|
88
89
|
</div>
|
|
89
90
|
</div>
|
|
90
91
|
```
|
|
92
|
+
|
|
93
|
+
You can adjust the datagrid to your needs setting the values of variables:
|
|
94
|
+
|
|
95
|
+
| Variable | Description | Default |
|
|
96
|
+
|----------|-------------|---------|
|
|
97
|
+
| `--tblr-datagrid-item-width` | Width of the datagrid item | `15rem` |
|
|
98
|
+
| `--tblr-datagrid-padding` | Gap between the datagrid items | `1.5rem` |
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Divider
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
summary: Dividers help organize content and make the interface layout clear and uncluttered. Greater clarity adds up to better user experience and enhanced interaction with a website or app.
|
|
4
|
+
description: Separate content with clear dividers.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Default markup
|
|
8
8
|
|
|
9
9
|
Use dividers to visually separate content into parts. You can use a line only or add text that will be centered by default.
|
|
10
10
|
|
|
11
|
-
```html
|
|
11
|
+
```html example
|
|
12
12
|
<p>
|
|
13
13
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
|
|
14
14
|
</p>
|
|
@@ -22,7 +22,7 @@ Use dividers to visually separate content into parts. You can use a line only or
|
|
|
22
22
|
|
|
23
23
|
You can modify the position of the text which is to be included in a separator and make it left- or right-aligned. Otherwise, the text will remain centered.
|
|
24
24
|
|
|
25
|
-
```html
|
|
25
|
+
```html example height="380px"
|
|
26
26
|
<p>
|
|
27
27
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
|
|
28
28
|
</p>
|
|
@@ -42,9 +42,9 @@ You can modify the position of the text which is to be included in a separator a
|
|
|
42
42
|
|
|
43
43
|
## Divider color
|
|
44
44
|
|
|
45
|
-
Customize the color of dividers to make them go well with your design. Click [here](/docs/ui/colors) to see the list of available colors.
|
|
45
|
+
Customize the color of dividers to make them go well with your design. Click [here](/docs/ui/base/colors) to see the list of available colors.
|
|
46
46
|
|
|
47
|
-
```html
|
|
47
|
+
```html example height="380px"
|
|
48
48
|
<p>
|
|
49
49
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, dolore dolores doloribus est ex.
|
|
50
50
|
</p>
|