

Every state


default


hover


focus


unsaved


closed


reordered


empty
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Open documents" | Names the tab strip for screen readers. |
| tabs | TabBarClosableTab[] | [ { id: "inv-0142", title: "INV-0142", icon: "receipt", body: "Invoice to Harbour Bakery, 14 lines, € 2,480.00 due on… | The tabs, in order. |
| defaultSelected | string | – | Id of the tab that starts open. Left out: the first. |
| closeLabel | string | "Close" | Close button label; the tab title follows it ("Close INV-0142"). |
| dirtyLabel | string | "unsaved changes" | Added to the close label of a tab with unsaved changes. |
| movedText | string | "{title} moved to position {position} of {count}" | Said after a move. {title}, {position} and {count} are filled in. |
| closedText | string | "{title} closed. {next} is open." | Said after a close. {title} and {next} (the tab that opens) are filled in. |
| emptyText | string | "No documents open. Open an invoice or a quote to see it here." | Said and shown once every tab is closed. |
| hint | string | null | "Drag a tab, or press Alt and an arrow key, to move it. Delete closes it." | How to move and close by keyboard, under the strip. Null: no hint (screen readers still get it). |
| onSelect | (id: string) => void | – | On select. |
| onClose | (id: string) => void | – | Called with the id of the closed tab. |
| onReorder | (ids: string[]) => void | – | Called with the new order of ids after a drag or Alt+Arrow. |
| className | string | – | Extra classes on the outer element. |
More tab bars
All 8tab-bar-02 is in UI ProGet UI Pro, €199

