diff --git a/.changeset/lovely-trees-divide.md b/.changeset/lovely-trees-divide.md
new file mode 100644
index 000000000..662a8feea
--- /dev/null
+++ b/.changeset/lovely-trees-divide.md
@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Add clipboard functionality to Tabler documentation
diff --git a/core/scss/ui/_markdown.scss b/core/scss/ui/_markdown.scss
index dccca8fdd..d3056b8b1 100644
--- a/core/scss/ui/_markdown.scss
+++ b/core/scss/ui/_markdown.scss
@@ -47,7 +47,7 @@ Markdown
border: 1px solid var(--#{$prefix}border-color);
}
- > pre {
+ pre {
max-height: 20rem;
}
}
\ No newline at end of file
diff --git a/docs/content/ui/components/badges.md b/docs/content/ui/components/badges.md
index e1c267f5d..b677876d9 100644
--- a/docs/content/ui/components/badges.md
+++ b/docs/content/ui/components/badges.md
@@ -10,50 +10,56 @@ bootstrapLink: components/badge/
The default badges are square and come in the basic set of colors.
{% capture html -%}
-Blue
-Azure
-Indigo
-Purple
-Pink
-Red
-Orange
-Yellow
-Lime
-Green
-Teal
-Cyan
+
+{% for color in site.colors -%}
+{% include "ui/badge.html" color=color[0] text=color[1].title %}
+{%- endfor -%}
+
{%- endcapture %}
{% include "docs/example.html" html=html centered %}
## Headings
+Badges can be used in headings to draw attention to new or important information. You can use them in any heading level, from `
` to `
`. The example below shows how to use badges in headings.
+
{% capture html -%}
-
Example heading New
-
Example heading New
-
Example heading New
-
Example heading New
-
Example heading New
-
Example heading New
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
+
+ Example heading
+ {% include "ui/badge.html" text="New" -%}
+
-
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" %}
{%- endcapture %}
-{% include "docs/example.html" html=html vertical separated %}
+{% include "docs/example.html" html=html centered %}
## Different separators
@@ -33,60 +23,18 @@ You can use different breadcrumb styles to match your website or app design. Cho
This example shows how to use different breadcrumb styles.
{% capture html -%}
-
-
-
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" separator="dots" %}
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" separator="arrows" %}
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" separator="bullets" %}
{%- endcapture %}
-{% include "docs/example.html" html=html vertical separated %}
+{% include "docs/example.html" html=html vertical separated centered %}
## With icon
You can use icons in breadcrumbs to make them more visually appealing. The example below demonstrates how to use icons in breadcrumbs.
{% capture html -%}
-
-
-
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" home-icon %}
{%- endcapture %}
{% include "docs/example.html" html=html vertical separated %}
@@ -95,19 +43,7 @@ You can use icons in breadcrumbs to make them more visually appealing. The examp
You can use the `breadcrumb-muted` class to create a muted breadcrumb style. This style is perfect for breadcrumbs that are not the main focus of your website or app.
{% capture html -%}
-
+{% include "ui/breadcrumb.html" pages="Home,Library,Data" class="breadcrumb-muted" %}
{%- endcapture %}
{% include "docs/example.html" html=html %}
@@ -119,24 +55,9 @@ You can use breadcrumbs in headers to show the current page location and provide
+ {% include "ui/breadcrumb.html" pages="Home,Library,Articles" -%}
- Knights of Ni, we are but simple travelers who seek the enchanter who lives beyond these
- woods.
+ How to Build a Modern Dashboard with Tabler
@@ -151,5 +72,5 @@ You can use breadcrumbs in headers to show the current page location and provide
{%- endcapture %}
-{% include "docs/example.html" html=html %}
+{% include "docs/example.html" html=html centered vertical %}
diff --git a/docs/content/ui/components/buttons.md b/docs/content/ui/components/buttons.md
index c91938334..fbaee53c9 100644
--- a/docs/content/ui/components/buttons.md
+++ b/docs/content/ui/components/buttons.md
@@ -16,7 +16,7 @@ As one of the most common elements of UI design, buttons have a very important f
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Default button
@@ -25,7 +25,7 @@ The standard button creates a white background and subtle hover animation. It's
{% capture html -%}
Link
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Button variations
@@ -41,7 +41,7 @@ Use the button classes that correspond to the function of your button. The big r
DarkLight
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated centered -%}
+{%- include "docs/example.html" html=html separated centered %}
## Disabled buttons
@@ -57,7 +57,7 @@ Make buttons look inactive to show that an action is possible once the user meet
DarkLight
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated centered -%}
+{%- include "docs/example.html" html=html separated centered %}
## Color variations
@@ -77,7 +77,7 @@ Choose the right color for your button to make it go well with your design and d
TealCyan
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated centered -%}
+{%- include "docs/example.html" html=html separated centered %}
## Ghost buttons
@@ -95,7 +95,7 @@ Use the `.btn-ghost-*` class to make your button look simple yet aesthetically a
Light
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated vertical -%}
+{%- include "docs/example.html" html=html separated vertical %}
## Square buttons
@@ -104,7 +104,7 @@ Use the `.btn-square` class to remove the border radius, if you want the corners
{% capture html -%}
Square button
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Pill buttons
@@ -113,7 +113,7 @@ Add the `.btn-pill` class to your button to make it rounded and give it a modern
{% capture html -%}
Pill button
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Outline buttons
@@ -129,7 +129,7 @@ Replace the default modifier class with the `.btn-outline-*` class, if you want
DarkLight
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Button size
@@ -139,13 +139,13 @@ Add `.btn-lg` or `.btn-sm` to change the size of your button and differentiate t
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
{% capture html -%}
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Buttons with icons
@@ -179,7 +179,7 @@ See all icons at [tabler.io/icons]({{ site.icons.link }}).
Comment
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
## Social buttons
@@ -243,7 +243,7 @@ You can use the icons of popular social networking sites, which users are famili
Tabler
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated centered hide-code -%}
+{%- include "docs/example.html" html=html separated centered hide-code %}
```html
@@ -298,7 +298,7 @@ You can also add an icon without the name of a social networking site, if you wa
{%- include "ui/icon.html" icon="brand-tabler" -%}
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated vertical hide-code -%}
+{%- include "docs/example.html" html=html separated vertical hide-code %}
```html
@@ -333,7 +333,7 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
{%- include "ui/icon.html" icon="git-merge" -%}
{%- endcapture -%}
-{%- include "docs/example.html" html=html separated centered hide-code -%}
+{%- include "docs/example.html" html=html separated centered hide-code %}
```html
@@ -373,7 +373,7 @@ Create a dropdown button that will encourage users to click for more options. Yo
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered hide-code height="260px" -%}
+{%- include "docs/example.html" html=html centered hide-code height="260px" %}
```html
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
If the list is long, it will be wrapped and some buttons will be moved to the next line, keeping them all evenly spaced.
@@ -447,7 +447,7 @@ If the list is long, it will be wrapped and some buttons will be moved to the ne
Nineteen
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
Use the `.text-center` or the `.text-end` modifiers to change the buttons' alignment and place them where they suit best.
@@ -457,7 +457,7 @@ Use the `.text-center` or the `.text-end` modifiers to change the buttons' align
Save changes
{%- endcapture -%}
-{%- include "docs/example.html" html=html -%}
+{%- include "docs/example.html" html=html %}
{% capture html -%}
@@ -465,7 +465,7 @@ Use the `.text-center` or the `.text-end` modifiers to change the buttons' align
Save changes
{%- endcapture -%}
-{%- include "docs/example.html" html=html -%}
+{%- include "docs/example.html" html=html %}
{% capture html -%}
@@ -474,7 +474,7 @@ Use the `.text-center` or the `.text-end` modifiers to change the buttons' align
Save changes
{%- endcapture -%}
-{%- include "docs/example.html" html=html -%}
+{%- include "docs/example.html" html=html %}
## Buttons with avatars
@@ -507,4 +507,4 @@ Use buttons with avatars to simplify the process of interaction and make your de
Avatar
{%- endcapture -%}
-{%- include "docs/example.html" html=html centered -%}
+{%- include "docs/example.html" html=html centered %}
diff --git a/docs/content/ui/components/vector-maps.md b/docs/content/ui/components/vector-maps.md
index d2a5f1a12..6cf5650d0 100644
--- a/docs/content/ui/components/vector-maps.md
+++ b/docs/content/ui/components/vector-maps.md
@@ -14,55 +14,22 @@ To use vector maps in your project, you need to include the jsVectorMap library
```
-## Sample demo
+## Default map
Integrating the vector map into your website is straightforward. Below is a sample implementation for a world map:
```html
-
-
+{% include "ui/map-vector.html" map-id="empty" %}
+{{ script }}
```
+## Sample demo
+
Look at the example below to see how the vector map works with a world map.
{% capture html -%}
-
-
-
-
-
-
-
-
-
-
+{% include "ui/map-vector.html" map-id="world" %}
+{{ script }}
{%- endcapture %}
{% include "docs/example.html" html=html %}
@@ -71,99 +38,17 @@ Look at the example below to see how the vector map works with a world map.
You can add markers to the map to highlight specific locations. Below is a sample implementation for a world map with markers:
{% capture html -%}
-
- {% if docs-libs -%}
{% for lib in libs.js -%}
- {% if docs-libs contains lib[0] or libs.global-libs contains lib[0] -%}
+ {% if docs-libs contains lib[0] or libs.global-libs contains lib[0] or lib[0] == "clipboard" -%}
{% for file in lib[1] -%}