

Every state


default


hover


focus


selected


large-counts


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| label | string | "Invoices" | Names the tab list for screen readers. |
| tabs | TabBarUnderlineCountsTab[] | [ { id: "open", label: "Open", count: 12, content: panel("12 invoices are waiting for payment, worth € 8,420 in total… | The tabs, in order. |
| defaultValue | string | – | Id of the tab selected at first. Left out: the first tab that is not disabled. |
| max | number | 99 | Counts above this read as "max+". |
| countLabel | string | null | "invoices" | Read after each count by screen readers ("12 invoices"). Null: the number alone. |
| onChange | (id: string) => void | – | Called with the tab id when another tab is selected. |
| className | string | – | Extra classes on the outer element. |


