Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Chrome-style tabs in HTML/CSS.
Chrome Tabs is a free, open-source HTML/CSS/JavaScript UI component that recreates the Google Chrome tab bar with draggable, closable tabs for use on any website.
Chrome Tabs is a vanilla ES6 JavaScript library that renders a replica of Chrome's tab strip in a web browser. It takes a container element and produces a set of draggable tabs with titles, close buttons, and active states, matching the look and feel of Google Chrome. The component has no framework dependencies and works with plain HTML, CSS, and JavaScript, making it simple to include in any project. The live demo is hosted at adamschwartz.co, and the source code is available on GitHub with over 1,700 stars.
Chrome Tabs is free and open-source. The source code is publicly available on GitHub, and the live demo can be used without any cost.
Yes, Chrome Tabs is open-source and free to use. The project is hosted on GitHub, and you can download or clone the code for personal or commercial projects.
Chrome Tabs is framework-agnostic, written in vanilla ES6. You can include it in any page with a script tag or import it in a module-based build. It does not require React, Vue, or any other framework, though you can use it inside those applications.
Dragging is powered by Draggabilly, a small JavaScript library by Dave DeSandro. Draggabilly handles pointer events, so tabs can be dragged with a mouse, touch, or pen. The Chrome Tabs component uses it to enable reordering and to support dragging a tab out of the bar.
Yes, the component is built with plain CSS, so you can override any style using CSS rules. The HTML structure is straightforward, giving you full control over the tab bar's appearance to match your site's design.
The live demo runs entirely in the browser and requires a modern web browser that supports ES6 modules and the Pointer Events API. No server-side setup is needed; you can open the demo page directly.
