@tabler/core 1.0.0-beta22 → 1.0.0-beta23
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/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-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 +4 -3
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +4 -3
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +14 -6
- package/dist/css/tabler.min.css +4 -4
- package/dist/css/tabler.rtl.css +14 -6
- 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/customization.mdx +442 -0
- package/docs/illustrations/introduction/index.mdx +5 -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 +20 -19
- package/docs/ui/components/autosize.mdx +12 -3
- package/docs/ui/components/avatars.mdx +7 -4
- package/docs/ui/components/badges.mdx +25 -16
- 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 +8 -7
- package/docs/ui/components/countup.mdx +13 -14
- 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 +5 -11
- package/docs/ui/components/empty.mdx +7 -5
- package/docs/ui/components/icons.mdx +8 -7
- package/docs/ui/components/index.mdx +6 -0
- package/docs/ui/components/inline-player.mdx +4 -3
- package/docs/ui/components/modals.mdx +14 -9
- package/docs/ui/components/placeholder.mdx +12 -11
- package/docs/ui/components/popover.mdx +8 -9
- package/docs/ui/components/progress.mdx +120 -19
- package/docs/ui/components/range-slider.mdx +18 -3
- package/docs/ui/components/ribbons.mdx +13 -12
- package/docs/ui/components/spinners.mdx +31 -10
- package/docs/ui/components/statuses.mdx +38 -13
- package/docs/ui/components/steps.mdx +8 -7
- 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 -2
- 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/forms/form-color-check.mdx +36 -11
- package/docs/ui/forms/form-elements.mdx +32 -16
- 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 +2 -0
- package/docs/ui/getting-started/customize.mdx +5 -4
- package/docs/ui/getting-started/development.mdx +32 -0
- package/docs/ui/getting-started/download.mdx +3 -5
- package/docs/ui/getting-started/faq.mdx +3 -1
- package/docs/ui/getting-started/index.mdx +4 -28
- package/docs/ui/index.mdx +8 -0
- package/docs/ui/layout/index.mdx +6 -0
- package/docs/ui/layout/page-headers.mdx +16 -9
- package/docs/ui/layout/page-layouts.mdx +4 -3
- 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 +2 -1
- package/docs/ui/utilities/cursors.mdx +2 -1
- package/docs/ui/utilities/index.mdx +5 -0
- package/docs/ui/utilities/interactions.mdx +10 -5
- package/package.json +4 -3
- 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/_variables.scss +2 -4
- package/src/scss/tabler-socials.scss +2 -0
- package/src/scss/ui/_buttons.scss +1 -0
- package/src/scss/ui/_forms.scss +4 -0
- 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/vendor/_tom-select.scss +1 -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,12 +1,79 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Form helpers
|
|
3
|
-
|
|
3
|
+
summary: Use form helpers to provide additional information about a form element. You can use input help, required field, form hint, and additional info inside the label.
|
|
4
|
+
description: Provide additional guidance in forms.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Input help
|
|
7
8
|
|
|
8
|
-
Use an input helper to display additional information about a form element. The text label will appear once a user hovers over the helper.
|
|
9
|
+
Use an input helper to display additional information about a form element. The text label will appear once a user hovers over the helper. To add an input helper, use the `.form-help` class.
|
|
9
10
|
|
|
10
|
-
```html
|
|
11
|
-
<span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p
|
|
11
|
+
```html
|
|
12
|
+
<span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p>...</p>">?</span>
|
|
12
13
|
```
|
|
14
|
+
|
|
15
|
+
Look at the example below to see how the input help works:
|
|
16
|
+
|
|
17
|
+
```html example centered height="25rem" columns={1}
|
|
18
|
+
<div>
|
|
19
|
+
<label class="form-label">
|
|
20
|
+
ZIP Code
|
|
21
|
+
<span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p>ZIP Code must be US or CDN format. You can use an extended ZIP+4 code to determine address more accurately.</p><p class='mb-0'><a href=''>USP ZIP codes lookup tools</a></p>">?</span>
|
|
22
|
+
</label>
|
|
23
|
+
<input type="text" class="form-control" placeholder="Your ZIP Code">
|
|
24
|
+
</div>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Required field
|
|
28
|
+
|
|
29
|
+
Use the `.required` class to indicate that a field is required. It will add a red asterisk to the label.
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<label class="form-label required">Required</label>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Look at the example below to see how the required field works:
|
|
36
|
+
|
|
37
|
+
```html example centered columns={1}
|
|
38
|
+
<div>
|
|
39
|
+
<label class="form-label required">Required</label>
|
|
40
|
+
<input type="text" class="form-control" name="..." placeholder="Required...">
|
|
41
|
+
</div>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Form hint
|
|
45
|
+
|
|
46
|
+
Use a form hint to provide users with additional information about a form element. The text will appear below the input field. To add a form hint, use the `.form-hint` class.
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<div class="form-hint">We'll never share your email with anyone else.</div>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Look at the example below to see how the form hint works:
|
|
53
|
+
|
|
54
|
+
```html example centered columns={1}
|
|
55
|
+
<div>
|
|
56
|
+
<label class="form-label">Email address</label>
|
|
57
|
+
<input type="email" class="form-control" placeholder="Enter your email address">
|
|
58
|
+
<div class="form-hint">We'll never share your email with anyone else.</div>
|
|
59
|
+
</div>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Additional info inside label
|
|
63
|
+
|
|
64
|
+
Use the `.form-label-description` class to add additional information to the label. The text will appear next to the label. You can use it to add for example a character counter.
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<label class="form-label">Textarea <span class="form-label-description">56/100</span>
|
|
68
|
+
</label>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This example shows how to use the additional info inside the label:
|
|
72
|
+
|
|
73
|
+
```html example centered columns={1} height="15rem"
|
|
74
|
+
<div>
|
|
75
|
+
<label class="form-label">Textarea <span class="form-label-description">56/100</span>
|
|
76
|
+
</label>
|
|
77
|
+
<textarea class="form-control" name="" rows="3" placeholder="Content.."></textarea>
|
|
78
|
+
</div>
|
|
79
|
+
```
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Image check
|
|
3
|
+
summary: The image check is a great way to make your form more user-friendly and engaging. You can use the image check to create a visually appealing form that will help users make decisions quickly and easily.
|
|
4
|
+
description: Add visual appeal to forms with images.
|
|
3
5
|
---
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Default markup
|
|
8
|
+
|
|
9
|
+
To build an image check, you need to use the `.form-imagecheck` class and the `.form-imagecheck-input` class for the input element. You can also use the `.form-imagecheck-figure` class to style the image and the `.form-imagecheck-image` class to style the image itself.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<label class="form-imagecheck">
|
|
13
|
+
<input name="..." type="checkbox" value="" class="form-imagecheck-input" checked />
|
|
14
|
+
<span class="form-imagecheck-figure">
|
|
15
|
+
<img src="..." alt="" class="form-imagecheck-image" />
|
|
16
|
+
</span>
|
|
17
|
+
</label>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Look at the examples below to see how the image check works:
|
|
6
21
|
|
|
7
22
|
```html example centered columns="2" height="15rem"
|
|
8
23
|
<div class="mb-3">
|
|
@@ -10,7 +25,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
10
25
|
<div class="row g-2">
|
|
11
26
|
<div class="col-3">
|
|
12
27
|
<label class="form-imagecheck">
|
|
13
|
-
<input name="
|
|
28
|
+
<input name="image" type="checkbox" value="1" class="form-imagecheck-input" />
|
|
14
29
|
<span class="form-imagecheck-figure">
|
|
15
30
|
<img src="/samples/photos/everything-you-need-to-work-from-your-bed-2.jpg" alt="" class="form-imagecheck-image" />
|
|
16
31
|
</span>
|
|
@@ -18,7 +33,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
18
33
|
</div>
|
|
19
34
|
<div class="col-3">
|
|
20
35
|
<label class="form-imagecheck">
|
|
21
|
-
<input name="
|
|
36
|
+
<input name="image" type="checkbox" value="2" class="form-imagecheck-input" checked />
|
|
22
37
|
<span class="form-imagecheck-figure">
|
|
23
38
|
<img src="/samples/photos/color-palette-guide-sample-colors-catalog-.jpg" alt="" class="form-imagecheck-image" />
|
|
24
39
|
</span>
|
|
@@ -26,7 +41,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
26
41
|
</div>
|
|
27
42
|
<div class="col-3">
|
|
28
43
|
<label class="form-imagecheck">
|
|
29
|
-
<input name="
|
|
44
|
+
<input name="image" type="checkbox" value="3" class="form-imagecheck-input" />
|
|
30
45
|
<span class="form-imagecheck-figure">
|
|
31
46
|
<img src="/samples/photos/woman-read-book-and-drink-coffee-2.jpg" alt="" class="form-imagecheck-image" />
|
|
32
47
|
</span>
|
|
@@ -34,7 +49,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
34
49
|
</div>
|
|
35
50
|
<div class="col-3">
|
|
36
51
|
<label class="form-imagecheck">
|
|
37
|
-
<input name="
|
|
52
|
+
<input name="image" type="checkbox" value="4" class="form-imagecheck-input" checked />
|
|
38
53
|
<span class="form-imagecheck-figure">
|
|
39
54
|
<img src="/samples/photos/stylish-workspace-with-macbook-pro-2.jpg" alt="" class="form-imagecheck-image" />
|
|
40
55
|
</span>
|
|
@@ -44,14 +59,9 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
44
59
|
</div>
|
|
45
60
|
```
|
|
46
61
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<span class="form-imagecheck-figure">
|
|
51
|
-
<img src="..." alt="" class="form-imagecheck-image" />
|
|
52
|
-
</span>
|
|
53
|
-
</label>
|
|
54
|
-
```
|
|
62
|
+
## Radio buttons
|
|
63
|
+
|
|
64
|
+
If you want to use the image check as a radio button, you can change the input type to `radio`.
|
|
55
65
|
|
|
56
66
|
```html example centered columns="2" height="15rem"
|
|
57
67
|
<div class="mb-3">
|
|
@@ -59,7 +69,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
59
69
|
<div class="row g-2">
|
|
60
70
|
<div class="col-3">
|
|
61
71
|
<label class="form-imagecheck mb-2">
|
|
62
|
-
<input name="
|
|
72
|
+
<input name="image" type="radio" value="1" class="form-imagecheck-input" />
|
|
63
73
|
<span class="form-imagecheck-figure">
|
|
64
74
|
<img src="/samples/photos/woman-drinking-hot-tea-in-her-home-office.jpg" alt="" class="form-imagecheck-image" />
|
|
65
75
|
</span>
|
|
@@ -67,7 +77,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
67
77
|
</div>
|
|
68
78
|
<div class="col-3">
|
|
69
79
|
<label class="form-imagecheck mb-2">
|
|
70
|
-
<input name="
|
|
80
|
+
<input name="image" type="radio" value="2" class="form-imagecheck-input" checked />
|
|
71
81
|
<span class="form-imagecheck-figure">
|
|
72
82
|
<img src="/samples/photos/young-woman-sitting-on-the-sofa-and-working-on-her-laptop-3.jpg" alt="" class="form-imagecheck-image" />
|
|
73
83
|
</span>
|
|
@@ -75,7 +85,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
75
85
|
</div>
|
|
76
86
|
<div class="col-3">
|
|
77
87
|
<label class="form-imagecheck mb-2">
|
|
78
|
-
<input name="
|
|
88
|
+
<input name="image" type="radio" value="3" class="form-imagecheck-input" />
|
|
79
89
|
<span class="form-imagecheck-figure">
|
|
80
90
|
<img src="/samples/photos/beautiful-blonde-woman-relaxing-with-a-can-of-coke-on-a-tree-stump-by-the-beach.jpg" alt="" class="form-imagecheck-image" />
|
|
81
91
|
</span>
|
|
@@ -83,7 +93,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
83
93
|
</div>
|
|
84
94
|
<div class="col-3">
|
|
85
95
|
<label class="form-imagecheck mb-2">
|
|
86
|
-
<input name="
|
|
96
|
+
<input name="image" type="radio" value="4" class="form-imagecheck-input" checked />
|
|
87
97
|
<span class="form-imagecheck-figure">
|
|
88
98
|
<img src="/samples/photos/book-on-the-grass.jpg" alt="" class="form-imagecheck-image" />
|
|
89
99
|
</span>
|
|
@@ -95,53 +105,57 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
95
105
|
|
|
96
106
|
```html
|
|
97
107
|
<label class="form-imagecheck">
|
|
98
|
-
<input name="
|
|
108
|
+
<input name="..." type="radio" value="1" class="form-imagecheck-input" />
|
|
99
109
|
<span class="form-imagecheck-figure">
|
|
100
|
-
<img src="
|
|
110
|
+
<img src="..." alt="" class="form-imagecheck-image" />
|
|
101
111
|
</span>
|
|
102
112
|
</label>
|
|
103
113
|
```
|
|
104
114
|
|
|
105
|
-
|
|
115
|
+
## Avatars
|
|
116
|
+
|
|
117
|
+
If you want to use the image check with avatars, you can use the `.avatar` instead of the image.
|
|
118
|
+
|
|
119
|
+
```html example centered columns={2} height="15rem"
|
|
106
120
|
<div class="mb-3">
|
|
107
121
|
<label class="form-label">Person Check</label>
|
|
108
122
|
<div class="row g-2">
|
|
109
123
|
<div class="col-auto">
|
|
110
124
|
<label class="form-imagecheck mb-2">
|
|
111
|
-
<input name="
|
|
125
|
+
<input name="image" type="checkbox" value="1" class="form-imagecheck-input" />
|
|
112
126
|
<span class="form-imagecheck-figure">
|
|
113
127
|
<span class="form-imagecheck-image">
|
|
114
|
-
<span class="avatar avatar-
|
|
128
|
+
<span class="avatar avatar-xl" style="background-image: url(/samples/avatars/057f.jpg)"></span>
|
|
115
129
|
</span>
|
|
116
130
|
</span>
|
|
117
131
|
</label>
|
|
118
132
|
</div>
|
|
119
133
|
<div class="col-auto">
|
|
120
134
|
<label class="form-imagecheck mb-2">
|
|
121
|
-
<input name="
|
|
135
|
+
<input name="image" type="checkbox" value="2" class="form-imagecheck-input" checked />
|
|
122
136
|
<span class="form-imagecheck-figure">
|
|
123
137
|
<span class="form-imagecheck-image">
|
|
124
|
-
<span class="avatar avatar-
|
|
138
|
+
<span class="avatar avatar-xl">HS</span>
|
|
125
139
|
</span>
|
|
126
140
|
</span>
|
|
127
141
|
</label>
|
|
128
142
|
</div>
|
|
129
143
|
<div class="col-auto">
|
|
130
144
|
<label class="form-imagecheck mb-2">
|
|
131
|
-
<input name="
|
|
145
|
+
<input name="image" type="checkbox" value="3" class="form-imagecheck-input" />
|
|
132
146
|
<span class="form-imagecheck-figure">
|
|
133
147
|
<span class="form-imagecheck-image">
|
|
134
|
-
<span class="avatar avatar-
|
|
148
|
+
<span class="avatar avatar-xl" style="background-image: url(/samples/avatars/062m.jpg)"></span>
|
|
135
149
|
</span>
|
|
136
150
|
</span>
|
|
137
151
|
</label>
|
|
138
152
|
</div>
|
|
139
153
|
<div class="col-auto">
|
|
140
154
|
<label class="form-imagecheck mb-2">
|
|
141
|
-
<input name="
|
|
155
|
+
<input name="image" type="checkbox" value="4" class="form-imagecheck-input" checked />
|
|
142
156
|
<span class="form-imagecheck-figure">
|
|
143
157
|
<span class="form-imagecheck-image">
|
|
144
|
-
<span class="avatar avatar-
|
|
158
|
+
<span class="avatar avatar-xl" style="background-image: url(/samples/avatars/070m.jpg)"></span>
|
|
145
159
|
</span>
|
|
146
160
|
</span>
|
|
147
161
|
</label>
|
|
@@ -152,7 +166,7 @@ Add an image check to your form and give users visually attractive options to ch
|
|
|
152
166
|
|
|
153
167
|
```html
|
|
154
168
|
<label class="form-imagecheck">
|
|
155
|
-
<input name="" type="checkbox" value="" class="form-imagecheck-input" />
|
|
169
|
+
<input name="..." type="checkbox" value="..." class="form-imagecheck-input" />
|
|
156
170
|
<span class="form-imagecheck-figure">
|
|
157
171
|
<span class="form-imagecheck-image">
|
|
158
172
|
<span class="avatar avatar-md" style="background-image: url(...)"></span>
|
|
@@ -1,18 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Input mask
|
|
3
|
-
|
|
3
|
+
summary: An input mask is a used to clarify the input format required in a given field and is helpful for users, removing confusion and reducing the number of validation errors.
|
|
4
|
+
description: Clarify input formats for users.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
To be able to use the input mask in your application you will need to install the imask dependency. You can do this by running the following command:
|
|
10
|
+
|
|
11
|
+
<TabsPackage name="imask" />
|
|
12
|
+
|
|
13
|
+
And import or require:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import IMask from 'imask';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
You can also use the CDN link to include the script in your project:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<script src="https://cdn.jsdelivr.net/npm/imask"></script>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
If you struggle with the installation, you can find more information in the [IMask documentation](https://imask.js.org/guide.html#installation).
|
|
9
26
|
|
|
10
27
|
## Default markup
|
|
11
28
|
|
|
12
29
|
Use an input mask in the fields where users have to enter their phone number, to make the formatting rules clear and help them avoid confusion.
|
|
13
30
|
|
|
14
|
-
|
|
31
|
+
To create an input mask, add the `data-mask` attribute to the input element:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<input type="text" name="input-mask" class="form-control" data-mask="(00) 0000-0000" placeholder="(00) 0000-0000" autocomplete="off" />
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Look at the example below to see how the input mask works:
|
|
38
|
+
|
|
39
|
+
```html example centered columns={1}
|
|
15
40
|
<label class="form-label">Telephone mask</label>
|
|
16
41
|
<input type="text" name="input-mask" class="form-control" data-mask="(00) 0000-0000" data-mask-visible="true" placeholder="(00) 0000-0000" autocomplete="off" />
|
|
17
42
|
```
|
|
18
43
|
|
|
44
|
+
## More examples
|
|
45
|
+
|
|
46
|
+
If you need more examples of input masks, you can find them in the [IMask documentation](https://imask.js.org/guide.html#masked-input).
|
|
@@ -1,12 +1,60 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Form
|
|
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.
|
|
3
5
|
---
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Simple selectgroup
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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>
|
|
10
58
|
<div class="form-selectgroup">
|
|
11
59
|
<label class="form-selectgroup-item">
|
|
12
60
|
<input type="checkbox" name="name" value="HTML" class="form-selectgroup-input" checked />
|
|
@@ -28,7 +76,22 @@ Add selectboxes to make your form more intuitive by providing users with a set o
|
|
|
28
76
|
</div>
|
|
29
77
|
```
|
|
30
78
|
|
|
31
|
-
|
|
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
|
|
32
95
|
<div class="mb-3">
|
|
33
96
|
<label class="form-label">Icon input</label>
|
|
34
97
|
<div class="form-selectgroup">
|
|
@@ -78,46 +141,68 @@ Add selectboxes to make your form more intuitive by providing users with a set o
|
|
|
78
141
|
</div>
|
|
79
142
|
```
|
|
80
143
|
|
|
81
|
-
|
|
144
|
+
You can also add text to the element. Look at the example below to see how it works:
|
|
145
|
+
|
|
146
|
+
```html example columns={1} centered
|
|
82
147
|
<div class="mb-3">
|
|
83
148
|
<label class="form-label">Selectgroup with icons and text</label>
|
|
84
149
|
<div class="form-selectgroup">
|
|
85
150
|
<label class="form-selectgroup-item">
|
|
86
151
|
<input type="radio" name="icons" value="home" class="form-selectgroup-input" checked />
|
|
87
|
-
<span class="form-selectgroup-label"
|
|
152
|
+
<span class="form-selectgroup-label">
|
|
153
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
88
154
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
89
155
|
<polyline points="5 12 3 12 12 3 21 12 19 12" />
|
|
90
156
|
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
|
|
91
157
|
<path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
|
|
92
|
-
</svg> Home
|
|
158
|
+
</svg> Home
|
|
159
|
+
</span>
|
|
93
160
|
</label>
|
|
94
161
|
<label class="form-selectgroup-item">
|
|
95
162
|
<input type="radio" name="icons" value="user" class="form-selectgroup-input" />
|
|
96
|
-
<span class="form-selectgroup-label"
|
|
163
|
+
<span class="form-selectgroup-label">
|
|
164
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
97
165
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
98
166
|
<circle cx="12" cy="7" r="4" />
|
|
99
167
|
<path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
|
|
100
|
-
</svg> User
|
|
168
|
+
</svg> User
|
|
169
|
+
</span>
|
|
101
170
|
</label>
|
|
102
171
|
<label class="form-selectgroup-item">
|
|
103
172
|
<input type="radio" name="icons" value="circle" class="form-selectgroup-input" />
|
|
104
|
-
<span class="form-selectgroup-label"
|
|
173
|
+
<span class="form-selectgroup-label">
|
|
174
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
105
175
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
106
176
|
<circle cx="12" cy="12" r="9" />
|
|
107
|
-
</svg> Circle
|
|
177
|
+
</svg> Circle
|
|
178
|
+
</span>
|
|
108
179
|
</label>
|
|
109
180
|
<label class="form-selectgroup-item">
|
|
110
181
|
<input type="radio" name="icons" value="square" class="form-selectgroup-input" />
|
|
111
|
-
<span class="form-selectgroup-label"
|
|
182
|
+
<span class="form-selectgroup-label">
|
|
183
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
112
184
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
113
185
|
<rect x="4" y="4" width="16" height="16" rx="2" />
|
|
114
|
-
</svg> Square
|
|
186
|
+
</svg> Square
|
|
187
|
+
</span>
|
|
115
188
|
</label>
|
|
116
189
|
</div>
|
|
117
190
|
</div>
|
|
118
191
|
```
|
|
119
192
|
|
|
120
|
-
|
|
193
|
+
## Pill selectgroup
|
|
194
|
+
|
|
195
|
+
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.
|
|
196
|
+
|
|
197
|
+
```html
|
|
198
|
+
<div class="form-selectgroup form-selectgroup-pills">
|
|
199
|
+
...
|
|
200
|
+
</div>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Look at the example below to see how the pill selectgroup works:
|
|
204
|
+
|
|
205
|
+
```html example columns={1} centered
|
|
121
206
|
<div class="mb-3">
|
|
122
207
|
<label class="form-label">Different style</label>
|
|
123
208
|
<div class="form-selectgroup form-selectgroup-pills">
|
|
@@ -1,14 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Validation states
|
|
3
|
-
|
|
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.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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" background="bg-light" 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" background="bg-light" 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">
|
|
34
|
+
Please provide a valid city.
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
You can also use the `.valid-feedback` to provide users with positive feedback.
|
|
40
|
+
|
|
41
|
+
```html example centered columns="1" background="bg-light" height="20rem"
|
|
42
|
+
<div>
|
|
43
|
+
<label class="form-label required">City</label>
|
|
44
|
+
<input type="text" class="form-control is-valid" value="Warsaw">
|
|
45
|
+
<div class="valid-feedback">
|
|
46
|
+
Looks good!
|
|
47
|
+
</div>
|
|
12
48
|
</div>
|
|
13
49
|
```
|
|
14
50
|
|
|
@@ -16,10 +52,15 @@ description: To inform users whether the entered value is correct or not, use ei
|
|
|
16
52
|
|
|
17
53
|
If you prefer a more subtle manner of informing users of the input control validation state, you can use tick and cross symbols and resign from colored control frames and the validation feedback.
|
|
18
54
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
55
|
+
To do this, use the `.is-valid-lite` and `.is-invalid-lite` classes.
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Look how it works in the example below:
|
|
62
|
+
|
|
63
|
+
```html example centered separated vertical columns="1" background="bg-light" height="20rem"
|
|
64
|
+
<input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
|
|
65
|
+
<input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
|
|
25
66
|
```
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
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.
|
|
3
5
|
---
|
|
4
6
|
|
|
5
7
|
As of this latest release, Tabler has launched many new features that may not be compatible with all browsers, especially older ones.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Customize Tabler
|
|
3
|
-
|
|
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.
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Custom Google Font
|
|
@@ -17,8 +18,8 @@ Now you just need to tell Tabler to use your favorite font:
|
|
|
17
18
|
|
|
18
19
|
```html
|
|
19
20
|
<style>
|
|
20
|
-
:root {
|
|
21
|
-
|
|
22
|
-
}
|
|
21
|
+
:root {
|
|
22
|
+
--tblr-font-sans-serif: 'Inter';
|
|
23
|
+
}
|
|
23
24
|
</style>
|
|
24
25
|
```
|