# Tabler v1.8 is here, with a combobox, a phone input and a dropzone

> Tabler 1.8 is out. It's a release about forms: a combobox, a phone input, a file dropzone and an input mask, all built into tabler.js. There's also a code block, select all for tables, a banner, file icons and a bento grid.

- Published: December 1, 2026
- Author: Paweł Kuna
- URL: https://tabler.io/blog/tabler-1.8

[Tabler 1.7](https://tabler.io/blog/tabler-1.7) brought maps and a set of components for images and text.

1.8 is a release about forms. There's a combobox that can replace a select, a phone input with a country picker, a file
dropzone and an input mask. All four are built into `tabler.js`, so you don't need an extra library for any of them.
There's also a code block, a select-all plugin for tables, a banner, file icons and a bento grid. For most projects the
upgrade is just a version bump.

The [full changelog](https://tabler.io/changelog/admin-template/1.8) lists every commit. Here I'll just go through the bigger changes.

![Combobox](https://tabler.io/img/blog/tabler-1.8.0-combobox.png)

## Combobox

A native select can only show text. The combobox looks like a select, but its options are ordinary HTML, so an item can
hold an icon, a description, a badge or an avatar.

Add `data-bs-toggle="combobox"` to a `<select class="form-select">`. The combobox builds the toggle and the menu from
its options, with a search field. The `<select>` stays in the DOM and fires a normal `change` event, so forms and
validation work as before. You can also write the menu yourself.

It supports multiple selection with tags and full keyboard control. It's the one to use in place of Tom Select.

![Phone input](https://tabler.io/img/blog/tabler-1.8.0-phone-input.png)

## Phone input

This is a telephone field with a country picker in front of it, showing flags and dial codes. Add
`data-bs-toggle="phone-input"` to an `<input type="tel">` and pick the start country with `data-bs-country`.

The picker is a combobox, so it has search and keyboard support. The number is formatted as you type. If you paste a
number that starts with `+`, it selects the country for you. And the script gives you the full international number.

![Dropzone](https://tabler.io/img/blog/tabler-1.8.0-dropzone.png)

## Dropzone

The dropzone is a file field with a large drop area and a list of the chosen files. Each file has its name, its size and
a remove button.

Add `data-bs-toggle="dropzone"` to a `.dropzone` element with a `.dropzone-area` label around a real
`<input type="file">`. By default the files go out with the form, like with any file field. If you set `data-bs-url`,
each file is uploaded on its own, with a progress bar.

The plugin is part of `tabler.js`, so Dropzone.js is deprecated now.

![Input mask](https://tabler.io/img/blog/tabler-1.8.0-input-mask.png)

## Input mask

`data-mask` no longer needs IMask. Patterns are formatted natively, with the same `0`, `a` and `*` characters.

There are two new types. `data-mask-type="number"` groups thousands and keeps the fraction to a set number of digits.
`data-mask-type="date"` keeps every part of a date or a time in its range. And `data-mask-ranges` limits the groups of
digits of any other pattern, such as the parts of an IP address.

A page that still loads IMask keeps working as before.

![Code block](https://tabler.io/img/blog/tabler-1.8.0-code-block.png)

## Code block

A code block is a code snippet with an optional header for a title and a language, and a copy button that uses the
Clipboard plugin. Wrap a `pre` in `.code-block`.

`.code-block-numbered` adds line numbers and `.code-line-highlight` points out a line. There's a max height variant for
long files too. It doesn't highlight syntax itself, so put the output of Prism or Shiki inside.

![Select all](https://tabler.io/img/blog/tabler-1.8.0-select-all.png)

## Select all

One checkbox that checks every row of a selectable table or list. Add `data-bs-toggle="select-all"` to the wrapper and
`data-bs-select-all-check` to the checkbox in the header.

It turns indeterminate while only some rows are selected, and Shift-click selects a range. A `.selection-toolbar` above
the table swaps the filters for bulk actions and shows the number of selected rows.

![Banner](https://tabler.io/img/blog/tabler-1.8.0-banner.png)

## Banner and file icon

The banner is a one-line strip above the navbar, for an announcement, a trial notice or a maintenance message. A
`.banner` holds the text, a link and a close button. With `data-bs-banner-id`, a closed banner stays closed on the next
visit. `tabler-theme.js` hides it before the page renders, so the page doesn't jump.

![File icon](https://tabler.io/img/blog/tabler-1.8.0-file-icon.png)

The file icon is a sheet of paper with the file format on a colored label, for uploads, attachments and file lists. Add
`.file-icon` to an empty element and put the format in `data-type`. Common formats such as `pdf` get a color on their
own, and any other format gets a gray label.

![Bento grid](https://tabler.io/img/blog/tabler-1.8.0-bento-grid.png)

## Bento grid

A bento grid is a block of cards of different sizes, with edges that line up. It's good for feature sections and
dashboard overviews.

Add `.grid-bento` to a `.grid`, then size each tile with `.g-col-*` for the columns and the new `.g-row-*` for the rows.
Both take a breakpoint, and `--tblr-grid-bento-row-height` sets the height of a row.

![Color contrast](https://tabler.io/img/blog/tabler-1.8.0-color-contrast.png)

## Colors tuned for contrast

Colors are tuned for WCAG contrast in this release. The `azure`, `pink`, `red`, `orange`, `lime`, `green`, `teal`,
`cyan`, `success` and `warning` colors are darker. So every color except `yellow` now carries light text.

Every base and theme color also has a `--tblr-{color}-text` shade for text. It's darker in light mode and lighter in
dark mode. Outline and ghost buttons, alerts and statuses use it.

Body text is darker too. And inline `code` takes the color of the text around it, so it stays readable on buttons and
other colored surfaces. The demo has a new Color contrast page that shows the WCAG ratio of every color pairing.

![Stacked modals](https://tabler.io/img/blog/tabler-1.8.0-modal-stacked.png)

## Stacked modals, offcanvas and dialogs

A modal with `data-bs-stacked="true"` opens on top of the open modal instead of replacing it.

Offcanvas panels close with a swipe on touch devices. `.offcanvas-inset` leaves a gap around the panel, and
`--tblr-offcanvas-backdrop-blur` blurs the page behind it. The native `<dialog>` and its backdrop have open and close
animations now.

## JavaScript

`tabler.init(root)` starts every plugin on markup added after page load, and `tabler.dispose(root)` releases it again.
That helps a lot when a part of the page is rendered later.

`show()`, `hide()`, `toggle()` and `close()` return a Promise that resolves when the transition ends. And the new
`Toggler` plugin switches a class or an attribute on click with `data-bs-toggle="toggler"`, so a lot of small one-off
scripts can go.

Tooltips and hover popovers stay open while the pointer is over the tip, and all of them close on Escape.

## Forms and utilities

`form[data-bs-validate]` styles fields with `:user-invalid`. So an error shows only after the user has left the field,
with no JavaScript. Check, radio and switch marks are animated. The root element sets `accent-color`, so native
checkboxes, radios and range inputs without Tabler classes use the theme color.

There are about twenty new groups of utilities. Some are for CSS grid, such as `.grid-cols-*` and `.place-items-*`. Some
are for sizes, such as `.min-w-0`, `.w-fit-content` and `.dvh-100`. And some are for text, such as `.text-truncate-2`,
`.text-balance` and `.text-pretty`.

More components have their own `--tblr-*` variables now: cards, tables, modals, dropdowns, list groups, navs, the
carousel and the offcanvas, among others. And animated components only move when the user hasn't asked for reduced
motion.

## New in the demo and docs

The demo has a shopping cart page, pages for every new component, a delete repository modal with typed confirmation, a
weekly metrics card and a new notifications dropdown with avatars and day groups.

The docs have pages for every new component and plugin, a new Tabler Flags section and a section on `tabler.init()` and
`tabler.dispose()` on the installation page.

## Upgrading from 1.7

For most projects 1.8 is a version bump. Every class, data attribute and JavaScript export from 1.7 is still there, and
a page that loads the compiled CSS and JS needs no change to its markup.

Two things can touch your code, and both are about colors. First, eight base colors and the `success` and `warning`
theme colors are darker. If you want to keep a 1.7 shade, set the color yourself, for example `--tblr-green: #2fb344`.
Second, the color shades from `$blue-100` to `$cyan-900` and `$link-color` are CSS values now. Sass color functions such
as `color.adjust()` can't read them, but Tabler's `tint-color()`, `shade-color()` and `mix-color()` still work.

A few things are deprecated and stay until 2.0: Dropzone.js, IMask and the `$btn-transition` Sass variable. Existing
pages keep working.

One more thing for TypeScript projects. `show()`, `hide()`, `toggle()` and `close()` return a Promise now. If you lint
with `@typescript-eslint/no-floating-promises`, mark the calls you don't await with `void`, for example
`void modal.show()`.

The [Upgrade to 1.8](https://docs.tabler.io/ui/getting-started/upgrade/1-8) guide has a before and after example for
every change.

You can install it with:

```bash
npm install @tabler/core@latest
```

## Get started with Tabler v1.8

If you want to see it in action, open the preview, read the upgrade guide or download the package.

- [View documentation](https://docs.tabler.io)
- [View preview](https://preview.tabler.io)
- [Upgrade to 1.8](https://docs.tabler.io/ui/getting-started/upgrade/1-8)
- [Get the Tabler Pro](https://r.tabler.io/buy-ui)
- [GitHub release](https://github.com/tabler/tabler/releases/tag/@tabler/core@1.8.0)

We'd love to see what you build with it.
