TabStrip
Navigation & Chrome

TabStrip

Faux-browser tab strip with window controls. Purely cosmetic chrome, useful for mockups and demos.

Props

TabStrip extends HTMLAttributes<HTMLDivElement>.

TabStripProps props
PropTypeDefaultDescription
onNewTab() => voidโ€”Called when the + new tab button is clicked.

BrowserTab

BrowserTabProps props
PropTypeDefaultDescription
faviconReactNodeโ€”Favicon rendered before the title.
titleReactNodeโ€”Tab title text.
onClose() => voidโ€”Called when the close button is clicked.
activebooleanโ€”Highlights the tab as the current one.

Examples

TabStrip with active and inactive tabs
With favicon and close
ImportTSX
import { TabStrip, BrowserTab } from "@solarius/onset";