114
A browser tab strip: drag tabs to reorder, close one and its neighbours slide in under your pointer, pin from the right-click menu, and scroll when the strip overflows.
akatabs·browser tabs·chrome tabs
Run this in any project set up for the shadcn CLI. It copies the Browser Tabs source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/browser-tabs.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { BrowserTabs } from "@/components/browser-tabs";
export default function Page() {
return <BrowserTabs />;
}A free React component in the Workspace collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Browser Tabs source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| defaultTabsrequired | BrowserTab[] | — |
| defaultActiveId | string | — |
| renderPage | (tab: BrowserTab) => ReactNode | — |
| newTab | () => Omit<BrowserTab, "id"> | — |
| onChange | (tabs: BrowserTab[], activeId: string | null) => void | — |
| className | string | — |