Tabler v1.7 is here, with maps, nav overflow and a number input


Tabler 1.7 is out. It has an interactive map and a vector world map, a nav that moves its overflow into a More menu, a number input, new components for images and text, CSS variables for every form control and 304 flags.
Tabler 1.6 was about components: eight new ones and a lot less CSS.
1.7 keeps going in that direction, and the biggest part of it is maps. There’s an interactive map and a vector world map, and neither of them needs an account or an API key. There’s also a nav that deals with its own overflow, a number input, a few components for images and text, and CSS variables for every form control. You don’t need to change your markup to upgrade.
The full changelog lists every commit. Here I’ll just go through the bigger changes.

Maps
A store locator, a delivery tracker, a dashboard of live users: a lot of admin panels need a map somewhere. Now you can
build one from plain HTML. Add data-bs-toggle="map" to an element and set the center and the zoom with data
attributes. Every child with data-bs-lng and data-bs-lat becomes a marker.
A marker can be a circle, a dot or a pin, with an icon, a count or an avatar inside, and it can open a popup on click.
data-bs-route draws a path with progress, data-bs-geojson draws areas, and data-bs-globe turns the map into a 3D
globe.
The map is rendered by MapLibre GL JS with free tiles from OpenFreeMap. So there’s no account and no access token, and
it follows dark mode. It ships as a small add-on, tabler-map.js, and it replaces the Mapbox and Google Maps demos.

Vector map
Sometimes you don’t need streets, only countries. The vector map is a world map drawn as inline SVG. It’s good for a number per country, a few places or the routes between them.
Add data-bs-toggle="vector-map" to a .vector-map element and pass the values in data-bs-values, keyed by ISO code.
The country with the highest value gets the full color and the others get a lighter shade. data-bs-colors gives you a
scale of several colors with a legend. Markers, dashed lines, tooltips, zoom and selection are set with data attributes
too.
It needs no map library, no API key and no network request. The plugin ships as tabler-vector-map.js, with the world
data in maps/world.js.

Nav overflow
A nav with many items wraps to a second line on a narrow screen, and that rarely looks good. Nav overflow keeps it on one line. Items that don’t fit move into a More dropdown at the end, and they come back when there’s room again.
Wrap the .nav in a .nav-overflow element with data-bs-toggle="nav-overflow". It watches the wrapper, not the
window, so it works in a card or a sidebar too. If an item should never go into the menu, mark it with
.nav-overflow-keep. The demo navbar uses it now.

Number input
This is a number field between a decrease and an increase button, for a quantity in a cart or a number of seats. Add
data-bs-toggle="number-input" to an input and the buttons are added for you.
It keeps the value within min and max, rounds it to step, repeats while a button is held and works with the arrow
keys. The input stays the only field the form sees, and every change fires change.bs.numberInput.

Hover gallery, image label and mockup browser
Three small components for images.
The hover gallery shows several images in the space of one. The image changes as the pointer moves across
.hover-gallery, and the indicators show which one is on. It needs no JavaScript, and on touch screens it turns into a
strip you swipe. It works well on product cards and listings.

An image label is a short text or an icon pinned to a corner of an image, such as “New”, “AI” or a video length. Put
.img-label inside an .img-labeled wrapper and pick the corner with a class. The corners follow the text direction,
so they swap in RTL.

The mockup browser is a frame that looks like a browser window, with the window dots and an address bar. It’s for a page preview or a screenshot. An image in the body fills the frame, the address bar is optional, and there’s a small size.

Icon list and list group slots
An icon list is a list with icons instead of bullets, for the features of a plan or the steps of a setup. Add
.list-icon to the list and start each entry with an icon. You can color all the markers with --tblr-list-icon-color,
or one of them with a text-{color} class. .list-icon-inline puts short entries in a row.

A list group item can now be a row of slots: media, content with a title and a description, meta and actions. With
.list-group-selectable, a checked input marks its row as active without JavaScript. Items can be nested under a
parent, and the list comes in small and large sizes.

Text shimmer and keyboard keys
Text shimmer is a band of light that sweeps across a label such as “Thinking…” while an agent works or a task runs. Add
.text-shimmer to the label. It’s a mask, so the text keeps its own color. .text-shimmer-loader adds a small spinner
in front.

<kbd> looks like a compact key cap now, and the .kbd class gives the same look to any element. Wrap the keys of one
shortcut in .kbd-group and they stay on one line with an even gap. Inside a button or a tooltip, a key takes the color
of the text around it.

304 flags
The flags plugin now ships the flags from Tabler Flags. That’s 304 country,
territory and organisation flags, and 50 of them are new, such as .flag-country-nato.
The class is still .flag-country-{code} with the ISO code. Flags without a code use a slug, such as
.flag-country-european-union. The old codes keep working as aliases.
CSS variables for every form control
Form controls read CSS variables now. .form-control and .form-select use --tblr-control-*. Checks, switches, input
group add-ons, floating labels and range inputs have their own sets. Icon add-ons, validation icons, the OTP input and
Tom Select follow them too, so one override restyles a whole form.
A few sizes line up better as well. .form-select-sm is 32px tall, like .form-control-sm. Input icons sit in the
middle of small and large fields. And the switch has a filled gray track when it’s off.
Buttons and dark mode
Filled buttons have a thin border, inner edges and a faint gradient, and outline buttons lose their shadow. .btn-xl is
bigger, and .btn-sm has more side padding.
Dark mode got a round of polish. Nav links, list group headers, toast headers, breadcrumbs, the footer and striped tables have better contrast. Card, alert, dropdown and table borders are no longer too bright.
There are also four neutral fill tokens, from --tblr-fill-primary to --tblr-fill-quaternary. They give the
translucent backgrounds of badges, avatars, code, progress tracks and the hover state, and the .bg-fill-* utilities
use them too.
Datagrid, Datepicker and a new theme
.datagrid-horizontal puts each label beside its value, and .datagrid-cols-{n} shows several pairs in a row.
The Datepicker has a weekNumbers option, dateFormat patterns such as 'DD.MM.YYYY' or 'iso', and a boundInput
option that writes ISO dates to a form field.
tabler-themes.css has a new mist gray palette for data-bs-theme-base. It’s a cool gray with a blue-green tint. And
data-bs-navbar-position="combined" shows the vertical and the horizontal navbar at once.
Smaller JS and bundled libraries
tabler.js is built for ES2022 instead of ES2015. That takes about 1.5 kB off tabler.min.js after gzip. The code is
checked with ESLint now, and the Sass doc comments are no longer in tabler.css.
dist/libs has MapLibre GL JS 6, and tabler-vendors.css styles its popups, attribution and controls in light and
dark. Dropzone, driver.js, fslightbox, FullCalendar, HugeRTE and Plyr are updated too.
New in the demo and docs
The demo navbar moves the links that don’t fit into a More menu. The maps page has marker, popup, route, area, cluster, bubble map and globe demos. The new Map blocks page has seven ready blocks, and one of them is a store locator.
The docs have pages for every new component, a Forms → CSS variables page that lists every token, and an Icon design guide in the Tabler Icons section.
Upgrading from 1.6
Nothing in 1.7 requires a change to your markup. Every class, custom property, Sass variable and function from 1.6 is still there.
Some things look a little different, mostly buttons and dark mode. If you have custom styles close to them, it’s worth a look. The Upgrade to 1.7 guide has a before and after example for every change.
You can install it with:
npm install @tabler/[email protected]
Get started with Tabler v1.7
If you want to see it in action, open the preview, read the upgrade guide or download the package.
We’d love to see what you build with it.


