Skip to content
Closable tabs, light
Light
Closable tabs, dark
Dark

Every state

  • Closable tabs, default, light
    Closable tabs, default, dark

    default

  • Closable tabs, hover, light
    Closable tabs, hover, dark

    hover

  • Closable tabs, focus, light
    Closable tabs, focus, dark

    focus

  • Closable tabs, unsaved, light
    Closable tabs, unsaved, dark

    unsaved

  • Closable tabs, closed, light
    Closable tabs, closed, dark

    closed

  • Closable tabs, reordered, light
    Closable tabs, reordered, dark

    reordered

  • Closable tabs, empty, light
    Closable tabs, empty, dark

    empty

Props

PropTypeDefaultWhat it does
labelstring"Open documents"Names the tab strip for screen readers.
tabsTabBarClosableTab[][ { id: "inv-0142", title: "INV-0142", icon: "receipt", body: "Invoice to Harbour Bakery, 14 lines, € 2,480.00 due on…The tabs, in order.
defaultSelectedstring–Id of the tab that starts open. Left out: the first.
closeLabelstring"Close"Close button label; the tab title follows it ("Close INV-0142").
dirtyLabelstring"unsaved changes"Added to the close label of a tab with unsaved changes.
movedTextstring"{title} moved to position {position} of {count}"Said after a move. {title}, {position} and {count} are filled in.
closedTextstring"{title} closed. {next} is open."Said after a close. {title} and {next} (the tab that opens) are filled in.
emptyTextstring"No documents open. Open an invoice or a quote to see it here."Said and shown once every tab is closed.
hintstring | 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.
classNamestring–Extra classes on the outer element.

More tab bars

All 8
tab-bar-02 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans