@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
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Vector Maps
|
|
3
|
+
description: Interactive guide to creating vector maps with jsVectorMap.
|
|
4
|
+
summary: Vector maps are a great way to display geographical data in an interactive and visually appealing way. Learn how to create vector maps with jsVectorMap.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
To use vector maps in your project, you need to include the jsVectorMap 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 jsVectorMap library from a CDN:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<script src="$TABLER_CDN/dist/libs/jsvectormap/dist/js/jsvectormap.min.js"></script>
|
|
13
|
+
<script src="$TABLER_CDN/dist/libs/jsvectormap/dist/maps/js/jsvectormap-world.js"></script>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Sample demo
|
|
17
|
+
|
|
18
|
+
Integrating the vector map into your website is straightforward. Below is a sample implementation for a world map:
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<div id="map-world" class="w-100 h-100"></div>
|
|
22
|
+
<script>
|
|
23
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
24
|
+
const map = new jsVectorMap({
|
|
25
|
+
selector: '#map-world',
|
|
26
|
+
map: 'world',
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Look at the example below to see how the vector map works with a world map.
|
|
33
|
+
|
|
34
|
+
```html example vendors height="30rem" libs="jsvectormap,jsvectormap-world" background="surface" columns={2} centered
|
|
35
|
+
<div class="card">
|
|
36
|
+
<div class="card-body">
|
|
37
|
+
<div class="ratio ratio-16x9">
|
|
38
|
+
<div>
|
|
39
|
+
<div id="map-world" class="w-100 h-100"></div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
47
|
+
const map = new jsVectorMap({
|
|
48
|
+
selector: '#map-world',
|
|
49
|
+
map: 'world',
|
|
50
|
+
backgroundColor: 'transparent',
|
|
51
|
+
regionStyle: {
|
|
52
|
+
initial: {
|
|
53
|
+
fill: tabler.getColor('body-bg'),
|
|
54
|
+
stroke: tabler.getColor('border-color'),
|
|
55
|
+
strokeWidth: 2,
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
zoomOnScroll: false,
|
|
59
|
+
zoomButtons: false,
|
|
60
|
+
});
|
|
61
|
+
window.addEventListener("resize", () => {
|
|
62
|
+
map.updateSize();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
</script>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Markers
|
|
69
|
+
|
|
70
|
+
You can add markers to the map to highlight specific locations. Below is a sample implementation for a world map with markers:
|
|
71
|
+
|
|
72
|
+
```html example vendors height="30rem" libs="jsvectormap,jsvectormap-world-merc" background="surface" columns={2} centered
|
|
73
|
+
<div class="card">
|
|
74
|
+
<div class="card-body">
|
|
75
|
+
<div class="ratio ratio-16x9">
|
|
76
|
+
<div>
|
|
77
|
+
<div id="map-world-markers" class="w-100 h-100"></div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<script>
|
|
84
|
+
// @formatter:on
|
|
85
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
86
|
+
const map = new jsVectorMap({
|
|
87
|
+
selector: '#map-world-markers',
|
|
88
|
+
map: 'world_merc',
|
|
89
|
+
backgroundColor: 'transparent',
|
|
90
|
+
regionStyle: {
|
|
91
|
+
initial: {
|
|
92
|
+
fill: tabler.getColor('body-bg'),
|
|
93
|
+
stroke: tabler.getColor('border-color'),
|
|
94
|
+
strokeWidth: 2,
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
zoomOnScroll: false,
|
|
98
|
+
zoomButtons: false,
|
|
99
|
+
markers: [
|
|
100
|
+
{
|
|
101
|
+
coords: [61.524, 105.3188],
|
|
102
|
+
name: "Russia",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
coords: [56.1304, -106.3468],
|
|
106
|
+
name: "Canada",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
coords: [71.7069, -42.6043],
|
|
110
|
+
name: "Greenland",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
coords: [26.8206, 30.8025],
|
|
114
|
+
name: "Egypt",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
coords: [-14.235, -51.9253],
|
|
118
|
+
name: "Brazil",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
coords: [35.8617, 104.1954],
|
|
122
|
+
name: "China",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
coords: [37.0902, -95.7129],
|
|
126
|
+
name: "United States",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
coords: [60.472024, 8.468946],
|
|
130
|
+
name: "Norway",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
coords: [48.379433, 31.16558],
|
|
134
|
+
name: "Ukraine",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
markerStyle: {
|
|
138
|
+
initial: {
|
|
139
|
+
r: 4,
|
|
140
|
+
stroke: '#fff',
|
|
141
|
+
opacity: 1,
|
|
142
|
+
strokeWidth: 3,
|
|
143
|
+
stokeOpacity: .5,
|
|
144
|
+
fill: tabler.getColor('blue')
|
|
145
|
+
},
|
|
146
|
+
hover: {
|
|
147
|
+
fill: tabler.getColor('blue'),
|
|
148
|
+
stroke: tabler.getColor('blue')
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
markerLabelStyle: {
|
|
152
|
+
initial: {
|
|
153
|
+
fontSize: 10
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
labels: {
|
|
157
|
+
markers: {
|
|
158
|
+
render: function(marker) {
|
|
159
|
+
return marker.name
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
window.addEventListener("resize", () => {
|
|
165
|
+
map.updateSize();
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
// @formatter:off
|
|
169
|
+
</script>
|
|
170
|
+
```
|
|
@@ -140,7 +140,6 @@ Include an additional element in your input section, such as a button which can
|
|
|
140
140
|
</div>
|
|
141
141
|
<div class="col-auto">
|
|
142
142
|
<a href="#" class="btn btn-icon" aria-label="Button">
|
|
143
|
-
|
|
144
143
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
145
144
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
146
145
|
<circle cx="10" cy="10" r="7" />
|
|
@@ -4,9 +4,11 @@ description: Check browser compatibility for Tabler.
|
|
|
4
4
|
summary: Learn about the supported browsers and compatibility guidelines for using Tabler UI components to ensure a consistent experience across different devices and platforms.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Tabler is fully optimized for all modern browsers, including the latest versions of Chrome, Firefox, Edge, Safari, and Opera. These browsers ensure a seamless and responsive experience, allowing users to enjoy Tabler's advanced UI components without compatibility issues.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
In this latest release, Tabler introduces modern features like CSS Grid, object fit, and sticky positioning, which enhance design flexibility but may not be fully supported on older browsers. While Tabler has dropped most vendor prefixes to streamline its styles, partial support remains for Internet Explorer, with some features potentially limited.
|
|
10
|
+
|
|
11
|
+
For the best experience, we recommend using one of the latest supported browsers to take full advantage of Tabler’s capabilities and design precision.
|
|
10
12
|
|
|
11
13
|
## Supported Browsers
|
|
12
14
|
|
|
@@ -20,3 +22,7 @@ Browser|Version
|
|
|
20
22
|
<img src="/docs/browsers/electron.svg" width="48" height="48" alt="Electron Logo"/>|last 3 versions
|
|
21
23
|
<img src="/docs/browsers/brave.svg" width="48" height="48" alt="Brave Logo"/>|last 3 versions
|
|
22
24
|
<img src="/docs/browsers/vivaldi.svg" width="48" height="48" alt="Vivaldi Logo"/>|last 3 versions
|
|
25
|
+
|
|
26
|
+
## Internet Explorer
|
|
27
|
+
|
|
28
|
+
Internet Explorer is not supported.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: How to Contribute
|
|
3
|
+
summary: This guide explains how to contribute to Tabler, from setting up a development environment to making and testing changes. It covers essential steps like forking the repository, installing dependencies, and submitting a pull request to help improve Tabler's features and functionality.
|
|
4
|
+
description: Guide to contributing to Tabler and setting up for development.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Contributions are always welcome and highly encouraged! Whether you're new to open source or a seasoned contributor, your input helps make Tabler better for everyone. If you're new to open source, [start here](https://opensource.guide/how-to-contribute/) to learn more about contributing.
|
|
8
|
+
|
|
9
|
+
## Contribution Requirements
|
|
10
|
+
|
|
11
|
+
When contributing to Tabler, please adhere to the following guidelines:
|
|
12
|
+
|
|
13
|
+
1. By submitting a contribution, you grant a non-exclusive license to the Tabler project to use your contribution in any context deemed appropriate.
|
|
14
|
+
2. If your contribution includes content from other sources, it must be appropriately licensed under an open source license.
|
|
15
|
+
3. Contributions must be submitted via GitHub pull requests.
|
|
16
|
+
4. Ensure your code works in all supported browsers (refer to our [browser support documentation](/docs/ui/getting-started/browser-support)).
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
Follow these steps to set up Tabler for development:
|
|
21
|
+
|
|
22
|
+
1. Fork the repository: [Guide to forking](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
|
|
23
|
+
|
|
24
|
+
2. Clone the repository to your local machine:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
git clone https://github.com/YOUR_USERNAME/tabler.git
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. Create a new branch for your changes:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
git checkout -b your-branch-name
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Development
|
|
37
|
+
|
|
38
|
+
To set up Tabler for development, follow these steps:
|
|
39
|
+
|
|
40
|
+
<div className="steps">
|
|
41
|
+
|
|
42
|
+
### Ensure Node.js and npm are installed
|
|
43
|
+
|
|
44
|
+
You’ll need Node.js (v20 or higher) and pnpm to compile Tabler’s files. If you don’t have them installed, download and install them from the official websites:
|
|
45
|
+
|
|
46
|
+
- [Node.js](https://nodejs.org/)
|
|
47
|
+
- [pnpm](https://pnpm.io/)
|
|
48
|
+
|
|
49
|
+
### Install Ruby and Bundler
|
|
50
|
+
|
|
51
|
+
Tabler uses Ruby and Bundler to manage dependencies. Install Ruby and Bundler by following the instructions in the [Ruby documentation](https://www.ruby-lang.org/en/documentation/installation/) and the [Bundler website](https://bundler.io/).
|
|
52
|
+
|
|
53
|
+
### Install dependencies
|
|
54
|
+
|
|
55
|
+
Run the following command to install all required npm packages. We recommend using pnpm for faster installation:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pnpm install
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Install Jekyll
|
|
62
|
+
|
|
63
|
+
Tabler uses Jekyll to build the documentation. Install Jekyll by running the following command:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
bundle install
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Start developer mode
|
|
70
|
+
|
|
71
|
+
Use the following command to enable autocompilation with live reload. This will start a local server at `http://localhost:3000/`:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pnpm run dev
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Make changes
|
|
78
|
+
|
|
79
|
+
Make your changes in the appropriate folders, such as `./src/` or `./docs/`. Avoid modifying files in `./dist/`, as they are auto-generated during the build process and will be overwritten.
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
## Compiling for Production
|
|
83
|
+
|
|
84
|
+
Before submitting a pull request, ensure your changes are properly compiled and tested:
|
|
85
|
+
|
|
86
|
+
1. Compile the production files
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm run build
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
2. Test all pages to confirm everything works as expected.
|
|
93
|
+
|
|
94
|
+
## Submitting Your Contribution
|
|
95
|
+
|
|
96
|
+
Once your changes are ready, create a pull request (PR) on GitHub. Make sure to include a clear and concise description of the changes and their purpose. Thank you for contributing to Tabler!
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Installation
|
|
3
|
+
order: 1
|
|
4
|
+
summary: Learn how to set up Tabler in your project by creating a basic HTML file, adding Tabler’s CSS and JavaScript, and exploring its powerful components to build responsive and visually stunning web applications.
|
|
5
|
+
description: "Set up Tabler: HTML, CSS, JS, and build stunning UIs."
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
This guide will take you through the essential steps to set up Tabler in your project, from creating a basic HTML file to incorporating Tabler’s styles and scripts. Let’s dive in!
|
|
9
|
+
|
|
10
|
+
<div className="steps">
|
|
11
|
+
|
|
12
|
+
### Step 1: Create a Basic HTML File
|
|
13
|
+
|
|
14
|
+
Begin by creating a new `index.html` file in the root of your project. This file will serve as the foundation for your Tabler-based interface. Include the basic HTML structure and a `<meta name="viewport">` tag for proper responsiveness:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<!doctype html>
|
|
18
|
+
<html lang="en">
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8">
|
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
22
|
+
<title>Tabler demo</title>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<h1>Hello, world!</h1>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Step 2: Add Tabler CSS and JavaScript
|
|
31
|
+
|
|
32
|
+
Enhance your page by including Tabler's CSS and JavaScript files. Use the following links to load the core Tabler styles and scripts from the CDN:
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler.min.css">
|
|
36
|
+
<script src="$TABLER_CDN/dist/js/tabler.min.js"></script>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Update your HTML file to include these resources:
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<!doctype html>
|
|
43
|
+
<html lang="en">
|
|
44
|
+
<head>
|
|
45
|
+
<meta charset="utf-8">
|
|
46
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
47
|
+
<title>Tabler Demo</title>
|
|
48
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler.min.css">
|
|
49
|
+
</head>
|
|
50
|
+
<body>
|
|
51
|
+
<h1>Hello, Tabler!</h1>
|
|
52
|
+
<script src="$TABLER_CDN/dist/js/tabler.min.js"></script>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
This setup includes the Tabler CSS and JavaScript via a CDN, providing a responsive and functional base for your project.
|
|
58
|
+
|
|
59
|
+
You can also download the files and include them locally in your project. For more information, see the [Download](/docs/ui/getting-started/download) page.
|
|
60
|
+
|
|
61
|
+
### 3. Open in Your Browser
|
|
62
|
+
|
|
63
|
+
Save the file and open it in your browser. You should see your first Tabler-powered page! From here, you can start adding layouts and components to create a fully functional and visually appealing web application.
|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
With these simple steps, you're ready to explore Tabler's features and build stunning web interfaces. For inspiration and guidance, you can view live demos at [preview.tabler.io](https://preview.tabler.io) and consult our [official documentation](https://tabler.io/docs) for detailed instructions and examples.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tabler License
|
|
3
|
+
summary: The MIT license grants you the flexibility to use Tabler in commercial or personal projects, modify its code, and distribute it freely. Ensure you include the required license and copyright notices to stay compliant with the terms.
|
|
4
|
+
description: "Tabler's MIT license: freedom to use, modify, and share."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Tabler is an open-source project licensed under the **MIT license**, giving you extensive freedom to use, modify, and distribute the software. This license ensures that you can adapt Tabler to your needs while maintaining the required attributions. While attribution is not required, it is greatly appreciated to acknowledge the hard work of the developers.
|
|
8
|
+
|
|
9
|
+
## What You Can Do with Tabler
|
|
10
|
+
|
|
11
|
+
The MIT license allows you to:
|
|
12
|
+
- Use Tabler in **commercial projects**.
|
|
13
|
+
- Use Tabler in **personal or private projects**.
|
|
14
|
+
- **Modify and customize** the source code to fit your requirements.
|
|
15
|
+
- **Distribute** the original or modified code.
|
|
16
|
+
- **Sublicense**: Integrate Tabler into projects with a more restrictive license.
|
|
17
|
+
|
|
18
|
+
## What You Cannot Do with Tabler
|
|
19
|
+
|
|
20
|
+
- The software is provided **“as is”**, meaning you cannot hold the authors or contributors liable for any issues, bugs, or damages that may arise from its use.
|
|
21
|
+
|
|
22
|
+
## What You Must Do When Using Tabler
|
|
23
|
+
|
|
24
|
+
When using Tabler, you must:
|
|
25
|
+
1. Include the **license notice** in all copies of the work.
|
|
26
|
+
2. Include the **copyright notice** in all copies of the work, except for the footer of the example HTML pages provided in the repository.
|
|
27
|
+
|
|
28
|
+
For more details, please refer to the full [Tabler License](https://github.com/tabler/tabler/blob/main/LICENSE).
|
|
29
|
+
|
|
30
|
+
By adhering to these requirements, you help ensure the continued openness and usability of Tabler for everyone. Thank you for supporting open-source software!
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Navbars
|
|
3
|
+
summary: A navbar serves as a central navigation tool, offering users quick and easy access to key sections of a website or application, improving usability and enhancing the overall user experience.
|
|
4
|
+
description: Create and customize responsive navigation bars with ease.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The navbar is a core component of any website or application, serving as the primary navigation tool. It provides users with quick access to key sections, enhancing usability and improving the overall user experience. Positioned typically at the top of the page, the navbar can contain links, buttons, branding elements, and even interactive components like dropdown menus or search bars.
|
|
8
|
+
|
|
9
|
+
With Tabler's utility classes, creating and customizing a responsive navbar is straightforward. Whether you’re building a simple site or a complex dashboard, Tabler’s navbar utilities offer the flexibility to design navigation that aligns perfectly with your project’s requirements.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Sample navbar
|
|
14
|
+
|
|
15
|
+
To create a navbar, use the `.navbar` class. The navbar is a horizontal bar that contains links to different sections of a website. It is typically placed at the top of the page and is used to provide navigation to the rest of the site.
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<header class="navbar navbar-expand-md d-print-none">
|
|
19
|
+
...
|
|
20
|
+
</header>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The navbar can contain links, buttons, and other elements. You can customize the appearance of the navbar by adding classes to the elements inside it.
|
|
24
|
+
|
|
25
|
+
```html example fullpage vcentered background="surface" padding={0} height="20rem"
|
|
26
|
+
<header class="navbar navbar-expand-md d-print-none">
|
|
27
|
+
<div class="container-xl">
|
|
28
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
|
|
29
|
+
<span class="navbar-toggler-icon"></span>
|
|
30
|
+
</button>
|
|
31
|
+
<div class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
|
|
32
|
+
<a href="javascript:void(0)">
|
|
33
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="110" height="32" viewBox="0 0 232 68" class="navbar-brand-image">
|
|
34
|
+
<path d="M64.6 16.2C63 9.9 58.1 5 51.8 3.4 40 1.5 28 1.5 16.2 3.4 9.9 5 5 9.9 3.4 16.2 1.5 28 1.5 40 3.4 51.8 5 58.1 9.9 63 16.2 64.6c11.8 1.9 23.8 1.9 35.6 0C58.1 63 63 58.1 64.6 51.8c1.9-11.8 1.9-23.8 0-35.6zM33.3 36.3c-2.8 4.4-6.6 8.2-11.1 11-1.5.9-3.3.9-4.8.1s-2.4-2.3-2.5-4c0-1.7.9-3.3 2.4-4.1 2.3-1.4 4.4-3.2 6.1-5.3-1.8-2.1-3.8-3.8-6.1-5.3-2.3-1.3-3-4.2-1.7-6.4s4.3-2.9 6.5-1.6c4.5 2.8 8.2 6.5 11.1 10.9 1 1.4 1 3.3.1 4.7zM49.2 46H37.8c-2.1 0-3.8-1-3.8-3s1.7-3 3.8-3h11.4c2.1 0 3.8 1 3.8 3s-1.7 3-3.8 3z" fill="#066fd1" style="fill: var(--tblr-primary, #066fd1)"></path>
|
|
35
|
+
<path d="M105.8 46.1c.4 0 .9.2 1.2.6s.6 1 .6 1.7c0 .9-.5 1.6-1.4 2.2s-2 .9-3.2.9c-2 0-3.7-.4-5-1.3s-2-2.6-2-5.4V31.6h-2.2c-.8 0-1.4-.3-1.9-.8s-.9-1.1-.9-1.9c0-.7.3-1.4.8-1.8s1.2-.7 1.9-.7h2.2v-3.1c0-.8.3-1.5.8-2.1s1.3-.8 2.1-.8 1.5.3 2 .8.8 1.3.8 2.1v3.1h3.4c.8 0 1.4.3 1.9.8s.8 1.2.8 1.9-.3 1.4-.8 1.8-1.2.7-1.9.7h-3.4v13c0 .7.2 1.2.5 1.5s.8.5 1.4.5c.3 0 .6-.1 1.1-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-nav">
|
|
40
|
+
<li class="nav-item active">
|
|
41
|
+
<a class="nav-link" href="javascript:void(0)">
|
|
42
|
+
<span class="nav-link-icon">
|
|
43
|
+
<!-- Download SVG icon from http://tabler.io/icons/icon/home -->
|
|
44
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-home">
|
|
45
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
46
|
+
<path d="M5 12l-2 0l9 -9l9 9l-2 0" />
|
|
47
|
+
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
|
|
48
|
+
<path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
|
|
49
|
+
</svg>
|
|
50
|
+
</span>
|
|
51
|
+
<span class="nav-link-title">
|
|
52
|
+
Home
|
|
53
|
+
</span>
|
|
54
|
+
</a>
|
|
55
|
+
</li>
|
|
56
|
+
<li class="nav-item">
|
|
57
|
+
<a class="nav-link" href="javascript:void(0)">
|
|
58
|
+
<span class="nav-link-icon"><!-- Download SVG icon from http://tabler.io/icons/icon/checkbox -->
|
|
59
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-user">
|
|
60
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
61
|
+
<path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" />
|
|
62
|
+
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
|
|
63
|
+
</svg>
|
|
64
|
+
</span>
|
|
65
|
+
<span class="nav-link-title">
|
|
66
|
+
Profile
|
|
67
|
+
</span>
|
|
68
|
+
</a>
|
|
69
|
+
</li>
|
|
70
|
+
<li class="nav-item">
|
|
71
|
+
<a class="nav-link" href="javascript:void(0)">
|
|
72
|
+
<span class="nav-link-icon"><!-- Download SVG icon from http://tabler.io/icons/icon/checkbox -->
|
|
73
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon">
|
|
74
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
75
|
+
<path d="M9 11l3 3l8 -8"></path>
|
|
76
|
+
<path d="M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9"></path>
|
|
77
|
+
</svg>
|
|
78
|
+
</span>
|
|
79
|
+
<span class="nav-link-title">
|
|
80
|
+
Settings
|
|
81
|
+
</span>
|
|
82
|
+
</a>
|
|
83
|
+
</li>
|
|
84
|
+
</ul>
|
|
85
|
+
<div class="navbar-nav flex-row order-md-last ms-auto">
|
|
86
|
+
<div class="nav-item dropdown">
|
|
87
|
+
<a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown" aria-label="Open user menu">
|
|
88
|
+
<span class="avatar avatar-sm" style="background-image: url(/static/samples/avatars/044m.jpg)"></span>
|
|
89
|
+
<div class="d-none d-xl-block ps-2">
|
|
90
|
+
<div>Paweł Kuna</div>
|
|
91
|
+
<div class="mt-1 small text-secondary">UI Designer</div>
|
|
92
|
+
</div>
|
|
93
|
+
</a>
|
|
94
|
+
<div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
|
|
95
|
+
<a href="#" class="dropdown-item">Status</a>
|
|
96
|
+
<a href="./profile.html" class="dropdown-item">Profile</a>
|
|
97
|
+
<a href="#" class="dropdown-item">Feedback</a>
|
|
98
|
+
<div class="dropdown-divider"></div>
|
|
99
|
+
<a href="./settings.html" class="dropdown-item">Settings</a>
|
|
100
|
+
<a href="./sign-in.html" class="dropdown-item">Logout</a>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</header>
|
|
106
|
+
```
|