@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,398 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Form selectgroup
|
|
3
|
+
summary: Use selectgroup to make your form more intuitive by providing users with a set of options to choose from. You can add simple selectgroup with a label, use icons only or icons with labels. Alternatively, you can use pill selectgroup if they go well with your design.
|
|
4
|
+
description: Improve form UX with select groups.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Simple selectgroup
|
|
8
|
+
|
|
9
|
+
To create a simple selectgroup, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<label class="form-selectgroup-item">
|
|
13
|
+
<input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
|
|
14
|
+
<span class="form-selectgroup-label">...</span>
|
|
15
|
+
</label>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Look at the example below to see how the simple selectgroup works:
|
|
19
|
+
|
|
20
|
+
```html example columns={1} centered
|
|
21
|
+
<div>
|
|
22
|
+
<div class="form-selectgroup">
|
|
23
|
+
<label class="form-selectgroup-item">
|
|
24
|
+
<input type="radio" name="name" value="HTML" class="form-selectgroup-input" checked />
|
|
25
|
+
<span class="form-selectgroup-label">HTML</span>
|
|
26
|
+
</label>
|
|
27
|
+
<label class="form-selectgroup-item">
|
|
28
|
+
<input type="radio" name="name" value="CSS" class="form-selectgroup-input" />
|
|
29
|
+
<span class="form-selectgroup-label">CSS</span>
|
|
30
|
+
</label>
|
|
31
|
+
<label class="form-selectgroup-item">
|
|
32
|
+
<input type="radio" name="name" value="PHP" class="form-selectgroup-input" />
|
|
33
|
+
<span class="form-selectgroup-label">PHP</span>
|
|
34
|
+
</label>
|
|
35
|
+
<label class="form-selectgroup-item">
|
|
36
|
+
<input type="radio" name="name" value="JavaScript" class="form-selectgroup-input" />
|
|
37
|
+
<span class="form-selectgroup-label">JavaScript</span>
|
|
38
|
+
</label>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Multiple choices
|
|
44
|
+
|
|
45
|
+
You can also create a selectgroup with multiple choices. To do this, change the `type` attribute of the input element to `checkbox`.
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<label class="form-selectgroup-item">
|
|
49
|
+
<input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
|
|
50
|
+
<span class="form-selectgroup-label">...</span>
|
|
51
|
+
</label>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Look at the example below to see how the multiple choices selectgroup works:
|
|
55
|
+
|
|
56
|
+
```html example columns={1} centered
|
|
57
|
+
<div>
|
|
58
|
+
<div class="form-selectgroup">
|
|
59
|
+
<label class="form-selectgroup-item">
|
|
60
|
+
<input type="checkbox" name="name" value="HTML" class="form-selectgroup-input" checked />
|
|
61
|
+
<span class="form-selectgroup-label">HTML</span>
|
|
62
|
+
</label>
|
|
63
|
+
<label class="form-selectgroup-item">
|
|
64
|
+
<input type="checkbox" name="name" value="CSS" class="form-selectgroup-input" />
|
|
65
|
+
<span class="form-selectgroup-label">CSS</span>
|
|
66
|
+
</label>
|
|
67
|
+
<label class="form-selectgroup-item">
|
|
68
|
+
<input type="checkbox" name="name" value="PHP" class="form-selectgroup-input" />
|
|
69
|
+
<span class="form-selectgroup-label">PHP</span>
|
|
70
|
+
</label>
|
|
71
|
+
<label class="form-selectgroup-item">
|
|
72
|
+
<input type="checkbox" name="name" value="JavaScript" class="form-selectgroup-input" />
|
|
73
|
+
<span class="form-selectgroup-label">JavaScript</span>
|
|
74
|
+
</label>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Icon input
|
|
80
|
+
|
|
81
|
+
To create an icon input, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label. You can use the `.icon` class to style the icon.
|
|
82
|
+
|
|
83
|
+
```html
|
|
84
|
+
<label class="form-selectgroup-item">
|
|
85
|
+
<input type="checkbox" name="name" value="sun" class="form-selectgroup-input" checked />
|
|
86
|
+
<span class="form-selectgroup-label">
|
|
87
|
+
<svg class="icon" width="24" height="24">...</svg>
|
|
88
|
+
</span>
|
|
89
|
+
</label>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
We recommend you use Tabler Icons for the best experience. You can find over <IconsCount rounded /> free icons in the [Tabler Icons](https://tabler-icons.io/) library. Just copy the SVG code and paste it into your project.
|
|
93
|
+
|
|
94
|
+
```html example columns={1} centered
|
|
95
|
+
<div class="mb-3">
|
|
96
|
+
<label class="form-label">Icon input</label>
|
|
97
|
+
<div class="form-selectgroup">
|
|
98
|
+
<label class="form-selectgroup-item">
|
|
99
|
+
<input type="checkbox" name="name" value="sun" class="form-selectgroup-input" checked />
|
|
100
|
+
<span class="form-selectgroup-label">
|
|
101
|
+
<svg
|
|
102
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
103
|
+
class="icon"
|
|
104
|
+
width="24"
|
|
105
|
+
height="24"
|
|
106
|
+
viewBox="0 0 24 24"
|
|
107
|
+
stroke-width="2"
|
|
108
|
+
stroke="currentColor"
|
|
109
|
+
fill="none"
|
|
110
|
+
stroke-linecap="round"
|
|
111
|
+
stroke-linejoin="round"
|
|
112
|
+
>
|
|
113
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
114
|
+
<circle cx="12" cy="12" r="4" />
|
|
115
|
+
<path
|
|
116
|
+
d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"
|
|
117
|
+
/>
|
|
118
|
+
</svg>
|
|
119
|
+
</span>
|
|
120
|
+
</label>
|
|
121
|
+
<label class="form-selectgroup-item">
|
|
122
|
+
<input type="checkbox" name="name" value="moon" class="form-selectgroup-input" />
|
|
123
|
+
<span class="form-selectgroup-label">
|
|
124
|
+
<svg
|
|
125
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
126
|
+
class="icon"
|
|
127
|
+
width="24"
|
|
128
|
+
height="24"
|
|
129
|
+
viewBox="0 0 24 24"
|
|
130
|
+
stroke-width="2"
|
|
131
|
+
stroke="currentColor"
|
|
132
|
+
fill="none"
|
|
133
|
+
stroke-linecap="round"
|
|
134
|
+
stroke-linejoin="round"
|
|
135
|
+
>
|
|
136
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
137
|
+
<path
|
|
138
|
+
d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"
|
|
139
|
+
/>
|
|
140
|
+
</svg>
|
|
141
|
+
</span>
|
|
142
|
+
</label>
|
|
143
|
+
<label class="form-selectgroup-item">
|
|
144
|
+
<input type="checkbox" name="name" value="cloud-rain" class="form-selectgroup-input" />
|
|
145
|
+
<span class="form-selectgroup-label">
|
|
146
|
+
<svg
|
|
147
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
148
|
+
class="icon"
|
|
149
|
+
width="24"
|
|
150
|
+
height="24"
|
|
151
|
+
viewBox="0 0 24 24"
|
|
152
|
+
stroke-width="2"
|
|
153
|
+
stroke="currentColor"
|
|
154
|
+
fill="none"
|
|
155
|
+
stroke-linecap="round"
|
|
156
|
+
stroke-linejoin="round"
|
|
157
|
+
>
|
|
158
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
159
|
+
<path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7" />
|
|
160
|
+
<path d="M11 13v2m0 3v2m4 -5v2m0 3v2" />
|
|
161
|
+
</svg>
|
|
162
|
+
</span>
|
|
163
|
+
</label>
|
|
164
|
+
<label class="form-selectgroup-item">
|
|
165
|
+
<input type="checkbox" name="name" value="cloud" class="form-selectgroup-input" />
|
|
166
|
+
<span class="form-selectgroup-label">
|
|
167
|
+
<svg
|
|
168
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
169
|
+
class="icon"
|
|
170
|
+
width="24"
|
|
171
|
+
height="24"
|
|
172
|
+
viewBox="0 0 24 24"
|
|
173
|
+
stroke-width="2"
|
|
174
|
+
stroke="currentColor"
|
|
175
|
+
fill="none"
|
|
176
|
+
stroke-linecap="round"
|
|
177
|
+
stroke-linejoin="round"
|
|
178
|
+
>
|
|
179
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
180
|
+
<path
|
|
181
|
+
d="M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 .996c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878"
|
|
182
|
+
/>
|
|
183
|
+
</svg>
|
|
184
|
+
</span>
|
|
185
|
+
</label>
|
|
186
|
+
<label class="form-selectgroup-item">
|
|
187
|
+
<input type="checkbox" name="name" value="Other" class="form-selectgroup-input" />
|
|
188
|
+
<span class="form-selectgroup-label">Other</span>
|
|
189
|
+
</label>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
You can also add text to the element. Look at the example below to see how it works:
|
|
195
|
+
|
|
196
|
+
```html example columns={1} centered
|
|
197
|
+
<div class="mb-3">
|
|
198
|
+
<label class="form-label">Selectgroup with icons and text</label>
|
|
199
|
+
<div class="form-selectgroup">
|
|
200
|
+
<label class="form-selectgroup-item">
|
|
201
|
+
<input type="radio" name="icons" value="home" class="form-selectgroup-input" checked />
|
|
202
|
+
<span class="form-selectgroup-label">
|
|
203
|
+
<svg
|
|
204
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
205
|
+
class="icon me-1"
|
|
206
|
+
width="24"
|
|
207
|
+
height="24"
|
|
208
|
+
viewBox="0 0 24 24"
|
|
209
|
+
stroke-width="2"
|
|
210
|
+
stroke="currentColor"
|
|
211
|
+
fill="none"
|
|
212
|
+
stroke-linecap="round"
|
|
213
|
+
stroke-linejoin="round"
|
|
214
|
+
>
|
|
215
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
216
|
+
<polyline points="5 12 3 12 12 3 21 12 19 12" />
|
|
217
|
+
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
|
|
218
|
+
<path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
|
|
219
|
+
</svg>
|
|
220
|
+
Home
|
|
221
|
+
</span>
|
|
222
|
+
</label>
|
|
223
|
+
<label class="form-selectgroup-item">
|
|
224
|
+
<input type="radio" name="icons" value="user" class="form-selectgroup-input" />
|
|
225
|
+
<span class="form-selectgroup-label">
|
|
226
|
+
<svg
|
|
227
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
228
|
+
class="icon me-1"
|
|
229
|
+
width="24"
|
|
230
|
+
height="24"
|
|
231
|
+
viewBox="0 0 24 24"
|
|
232
|
+
stroke-width="2"
|
|
233
|
+
stroke="currentColor"
|
|
234
|
+
fill="none"
|
|
235
|
+
stroke-linecap="round"
|
|
236
|
+
stroke-linejoin="round"
|
|
237
|
+
>
|
|
238
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
239
|
+
<circle cx="12" cy="7" r="4" />
|
|
240
|
+
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
|
|
241
|
+
</svg>
|
|
242
|
+
User
|
|
243
|
+
</span>
|
|
244
|
+
</label>
|
|
245
|
+
<label class="form-selectgroup-item">
|
|
246
|
+
<input type="radio" name="icons" value="circle" class="form-selectgroup-input" />
|
|
247
|
+
<span class="form-selectgroup-label">
|
|
248
|
+
<svg
|
|
249
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
250
|
+
class="icon me-1"
|
|
251
|
+
width="24"
|
|
252
|
+
height="24"
|
|
253
|
+
viewBox="0 0 24 24"
|
|
254
|
+
stroke-width="2"
|
|
255
|
+
stroke="currentColor"
|
|
256
|
+
fill="none"
|
|
257
|
+
stroke-linecap="round"
|
|
258
|
+
stroke-linejoin="round"
|
|
259
|
+
>
|
|
260
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
261
|
+
<circle cx="12" cy="12" r="9" />
|
|
262
|
+
</svg>
|
|
263
|
+
Circle
|
|
264
|
+
</span>
|
|
265
|
+
</label>
|
|
266
|
+
<label class="form-selectgroup-item">
|
|
267
|
+
<input type="radio" name="icons" value="square" class="form-selectgroup-input" />
|
|
268
|
+
<span class="form-selectgroup-label">
|
|
269
|
+
<svg
|
|
270
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
271
|
+
class="icon me-1"
|
|
272
|
+
width="24"
|
|
273
|
+
height="24"
|
|
274
|
+
viewBox="0 0 24 24"
|
|
275
|
+
stroke-width="2"
|
|
276
|
+
stroke="currentColor"
|
|
277
|
+
fill="none"
|
|
278
|
+
stroke-linecap="round"
|
|
279
|
+
stroke-linejoin="round"
|
|
280
|
+
>
|
|
281
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
282
|
+
<rect x="4" y="4" width="16" height="16" rx="2" />
|
|
283
|
+
</svg>
|
|
284
|
+
Square
|
|
285
|
+
</span>
|
|
286
|
+
</label>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Pill selectgroup
|
|
292
|
+
|
|
293
|
+
If you want to use pill selectgroup, use the `.form-selectgroup-pills` class. All the other classes are the same as in the simple selectgroup.
|
|
294
|
+
|
|
295
|
+
```html
|
|
296
|
+
<div class="form-selectgroup form-selectgroup-pills">...</div>
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Look at the example below to see how the pill selectgroup works:
|
|
300
|
+
|
|
301
|
+
```html example columns={1} centered
|
|
302
|
+
<div class="mb-3">
|
|
303
|
+
<label class="form-label">Different style</label>
|
|
304
|
+
<div class="form-selectgroup form-selectgroup-pills">
|
|
305
|
+
<label class="form-selectgroup-item">
|
|
306
|
+
<input type="checkbox" name="name" value="HTML" class="form-selectgroup-input" checked />
|
|
307
|
+
<span class="form-selectgroup-label">HTML</span>
|
|
308
|
+
</label>
|
|
309
|
+
<label class="form-selectgroup-item">
|
|
310
|
+
<input type="checkbox" name="name" value="CSS" class="form-selectgroup-input" />
|
|
311
|
+
<span class="form-selectgroup-label">CSS</span>
|
|
312
|
+
</label>
|
|
313
|
+
<label class="form-selectgroup-item">
|
|
314
|
+
<input type="checkbox" name="name" value="PHP" class="form-selectgroup-input" />
|
|
315
|
+
<span class="form-selectgroup-label">PHP</span>
|
|
316
|
+
</label>
|
|
317
|
+
<label class="form-selectgroup-item">
|
|
318
|
+
<input type="checkbox" name="name" value="JavaScript" class="form-selectgroup-input" />
|
|
319
|
+
<span class="form-selectgroup-label">JavaScript</span>
|
|
320
|
+
</label>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## Advanced selectboxes
|
|
326
|
+
|
|
327
|
+
Use more advanced selectboxes to display the range of available options. You can choose selectboxes with radio buttons if you want users to select only one option, or with checkboxes if they are allowed to choose multiple options.
|
|
328
|
+
|
|
329
|
+
```html example height="30rem" centered columns="1" plugins="payments"
|
|
330
|
+
<div class="mb-3">
|
|
331
|
+
<label class="form-label">Payment method</label>
|
|
332
|
+
<div class="form-selectgroup form-selectgroup-boxes d-flex flex-column">
|
|
333
|
+
<label class="form-selectgroup-item flex-fill">
|
|
334
|
+
<input type="radio" name="form-payment" value="visa" class="form-selectgroup-input" />
|
|
335
|
+
<div class="form-selectgroup-label d-flex align-items-center p-3">
|
|
336
|
+
<div class="me-3">
|
|
337
|
+
<span class="form-selectgroup-check"></span>
|
|
338
|
+
</div>
|
|
339
|
+
<div>
|
|
340
|
+
<span class="payment payment-provider-visa payment-xs me-2"></span>
|
|
341
|
+
ending in <strong>7998</strong>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</label>
|
|
345
|
+
<label class="form-selectgroup-item flex-fill">
|
|
346
|
+
<input
|
|
347
|
+
type="radio"
|
|
348
|
+
name="form-payment"
|
|
349
|
+
value="mastercard"
|
|
350
|
+
class="form-selectgroup-input"
|
|
351
|
+
checked
|
|
352
|
+
/>
|
|
353
|
+
<div class="form-selectgroup-label d-flex align-items-center p-3">
|
|
354
|
+
<div class="me-3">
|
|
355
|
+
<span class="form-selectgroup-check"></span>
|
|
356
|
+
</div>
|
|
357
|
+
<div>
|
|
358
|
+
<span class="payment payment-provider-mastercard payment-xs me-2"></span>
|
|
359
|
+
ending in <strong>2807</strong>
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
</label>
|
|
363
|
+
<label class="form-selectgroup-item flex-fill">
|
|
364
|
+
<input type="radio" name="form-payment" value="paypal" class="form-selectgroup-input" />
|
|
365
|
+
<div class="form-selectgroup-label d-flex align-items-center p-3">
|
|
366
|
+
<div class="me-3">
|
|
367
|
+
<span class="form-selectgroup-check"></span>
|
|
368
|
+
</div>
|
|
369
|
+
<div>
|
|
370
|
+
<span class="payment payment-provider-paypal payment-xs me-2"></span>
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
</label>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
```html
|
|
379
|
+
<label class="form-selectgroup-item flex-fill">
|
|
380
|
+
<input
|
|
381
|
+
type="radio"
|
|
382
|
+
name="form-payment"
|
|
383
|
+
value="mastercard"
|
|
384
|
+
class="form-selectgroup-input"
|
|
385
|
+
checked
|
|
386
|
+
/>
|
|
387
|
+
<div class="form-selectgroup-label d-flex align-items-center p-3">
|
|
388
|
+
<div class="me-3">
|
|
389
|
+
<span class="form-selectgroup-check"></span>
|
|
390
|
+
</div>
|
|
391
|
+
<div>
|
|
392
|
+
<span class="payment payment-provider-mastercard payment-xs me-2"></span>
|
|
393
|
+
ending in <strong>2807</strong>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
</label>
|
|
397
|
+
```
|
|
398
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Validation states
|
|
3
|
+
summary: To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
|
|
4
|
+
description: Indicate valid or invalid inputs.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Validation states
|
|
8
|
+
|
|
9
|
+
To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
|
|
10
|
+
|
|
11
|
+
To apply the validation state to the form control, use the `.is-valid` and `.is-invalid` classes.
|
|
12
|
+
|
|
13
|
+
```html example centered separated columns="1" height="20rem"
|
|
14
|
+
<input type="text" class="form-control is-valid" placeholder="Valid State..." />
|
|
15
|
+
<input type="text" class="form-control is-invalid" placeholder="Invalid State..." />
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Validation feedback
|
|
19
|
+
|
|
20
|
+
To provide users with additional information about the validation state, you can use the `.valid-feedback` and `.invalid-feedback` classes.
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<input type="text" class="form-control is-valid" placeholder="Valid State..." />
|
|
24
|
+
<div class="valid-feedback">Looks good!</div>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This is how it works in the example below:
|
|
28
|
+
|
|
29
|
+
```html example centered columns="1" height="20rem"
|
|
30
|
+
<div>
|
|
31
|
+
<label class="form-label required">City</label>
|
|
32
|
+
<input type="text" class="form-control is-invalid" required />
|
|
33
|
+
<div class="invalid-feedback">Please provide a valid city.</div>
|
|
34
|
+
</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You can also use the `.valid-feedback` to provide users with positive feedback.
|
|
38
|
+
|
|
39
|
+
```html example centered columns="1" height="20rem"
|
|
40
|
+
<div>
|
|
41
|
+
<label class="form-label required">City</label>
|
|
42
|
+
<input type="text" class="form-control is-valid" value="Warsaw" />
|
|
43
|
+
<div class="valid-feedback">Looks good!</div>
|
|
44
|
+
</div>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Subtle validation states
|
|
48
|
+
|
|
49
|
+
If you prefer a more subtle manner of informing users of the input control validation state, you can use tick and cross symbols and refrain from using colored control frames and the validation feedback.
|
|
50
|
+
|
|
51
|
+
To do this, use the `.is-valid-lite` and `.is-invalid-lite` classes.
|
|
52
|
+
|
|
53
|
+
```html
|
|
54
|
+
<input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Look how it works in the example below:
|
|
58
|
+
|
|
59
|
+
```html example centered separated vertical columns="1" height="20rem"
|
|
60
|
+
<input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
|
|
61
|
+
<input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
|
|
62
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Browser Support
|
|
3
|
+
description: Check browser compatibility for Tabler.
|
|
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
|
+
---
|
|
6
|
+
|
|
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
|
+
|
|
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.
|
|
12
|
+
|
|
13
|
+
## Supported Browsers
|
|
14
|
+
|
|
15
|
+
Browser|Version
|
|
16
|
+
---|----------
|
|
17
|
+
<img src="/docs/browsers/edge.svg" width="48" height="48" alt="Edge Logo"/>|last 3 versions
|
|
18
|
+
<img src="/docs/browsers/firefox.svg" width="48" height="48" alt="Firefox Logo"/>|last 3 versions, ESR
|
|
19
|
+
<img src="/docs/browsers/chrome.svg" width="48" height="48" alt="Chrome Logo"/>|last 3 versions
|
|
20
|
+
<img src="/docs/browsers/safari.svg" width="48" height="48" alt="Safari Logo"/>|last 3 versions
|
|
21
|
+
<img src="/docs/browsers/opera.svg" width="48" height="48" alt="Opera Logo"/>|last 3 versions
|
|
22
|
+
<img src="/docs/browsers/electron.svg" width="48" height="48" alt="Electron Logo"/>|last 3 versions
|
|
23
|
+
<img src="/docs/browsers/brave.svg" width="48" height="48" alt="Brave Logo"/>|last 3 versions
|
|
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,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Customize Tabler
|
|
3
|
+
summary: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
|
|
4
|
+
description: Adjust fonts, colors, and styles.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Custom Google Font
|
|
8
|
+
|
|
9
|
+
To use a custom Google Fonts font in Tabler you must import the font in the `<head>` section of the page. In this example we will use the _Inter_ font:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
13
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
14
|
+
<link
|
|
15
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap"
|
|
16
|
+
rel="stylesheet"
|
|
17
|
+
/>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Now you just need to tell Tabler to use your favorite font:
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<style>
|
|
24
|
+
:root {
|
|
25
|
+
--tblr-font-sans-serif: "Inter";
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Download
|
|
3
|
+
summary: Download Tabler to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, yarn and more.
|
|
4
|
+
description: Get Tabler CSS, JS, and source code.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## CDN via jsDelivr
|
|
8
|
+
|
|
9
|
+
All files included in the `@tabler/core` npm package are available over a jsDelivr CDN. Use it to deliver cached versions of Tabler’s compiled CSS and JS to your project.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<script src="$TABLER_CDN/dist/js/tabler.min.js"></script>
|
|
13
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler.min.css" />
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
You can also include additional Tabler plugins:
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-flags.min.css" />
|
|
20
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-payments.min.css" />
|
|
21
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-social.min.css" />
|
|
22
|
+
<link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-vendors.min.css" />
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Package managers
|
|
26
|
+
|
|
27
|
+
Install Tabler in your Node.js powered apps with the npm package:
|
|
28
|
+
|
|
29
|
+
<TabsPackage name="@tabler/core" />
|
|
30
|
+
|
|
31
|
+
Tabler uses other packages to enhance its functionality - for example, charts and input masks. These are not automatically installed to avoid huge
|
|
32
|
+
dependency trees and need to be installed by using npm install. We support the following packages as of writing.
|
|
33
|
+
|
|
34
|
+
- [apexcharts](https://apexcharts.com/)
|
|
35
|
+
- [autosize](http://www.jacklmoore.com/autosize/)
|
|
36
|
+
- [choices.js](https://github.com/Choices-js/Choices)
|
|
37
|
+
- [countup.js](https://inorganik.github.io/countUp.js/)
|
|
38
|
+
- [flatpickr](https://flatpickr.js.org/)
|
|
39
|
+
- [imask](https://imask.js.org/)
|
|
40
|
+
- [litepicker](https://litepicker.com/)
|
|
41
|
+
- [nouislider](https://refreshless.com/nouislider/)
|
|
42
|
+
- [tom-select](https://tom-select.js.org/)
|
|
43
|
+
|
|
44
|
+
For the complete list of supported packages you can check the peerDependencies section in our [package.json](https://github.com/tabler/tabler/blob/dev/package.json)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: FAQ
|
|
3
|
+
summary: Answers to the most frequently asked questions.
|
|
4
|
+
description: Common questions and answers.
|
|
5
|
+
order: 12
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## I found an issue, what can I do?
|
|
9
|
+
|
|
10
|
+
If you think you have found an issue that can only be fixed by the maintainers, feel free to open an issue on [GitHub](https://github.com/tabler/tabler).
|
|
11
|
+
|
|
12
|
+
## Will there be a version for Vue or React?
|
|
13
|
+
|
|
14
|
+
We are evaluating adding support for Vue 3 and React to all of our components, but it is not a top priority at the moment.
|
|
15
|
+
|
|
16
|
+
## Can I use Tabler in open source projects?
|
|
17
|
+
|
|
18
|
+
Yes, absolutely.
|
|
19
|
+
|
|
20
|
+
## Can I use Tabler in commercial projects?
|
|
21
|
+
|
|
22
|
+
Of course! Tabler is under MIT license, so you can confidently use it in commercial projects. However, remember to include a note that your project uses Tabler. You can read about our license here: [License](/license)
|
|
23
|
+
|
|
24
|
+
## Can Tabler be used with WordPress?
|
|
25
|
+
|
|
26
|
+
Tabler is an HTML template that can be used for any purpose. However, it is not made to be easily installed on WordPress. It will require some effort and enough knowledge of the WordPress script to do so.
|
|
27
|
+
|
|
28
|
+
## How do I get notified of new Tabler versions?
|
|
29
|
+
|
|
30
|
+
You may watch the releases on GitHub or follow me on Twitter.
|