TabStrip
Faux-browser tab strip with window controls. Purely cosmetic chrome, useful for mockups and demos.
Props
TabStrip extends HTMLAttributes<HTMLDivElement>.
| Prop | Type | Default | Description |
|---|---|---|---|
onNewTab | () => void | โ | Called when the + new tab button is clicked. |
BrowserTab
| Prop | Type | Default | Description |
|---|---|---|---|
favicon | ReactNode | โ | Favicon rendered before the title. |
title | ReactNode | โ | Tab title text. |
onClose | () => void | โ | Called when the close button is clicked. |
active | boolean | โ | Highlights the tab as the current one. |
Examples
import { TabStrip, BrowserTab } from "@solarius/onset";