The widget configuration
Optionalname?: stringThe accessible name of the tabs, as a strip or as a menu, telling apart several on one screen; unnamed if omitted.
Optionallook?: "subtle" | "normal"How loud the tabs appear, told in the rule closing them off rather than in colour, so the step still reads
where colour does not: normal carries the rule, setting the panel on show apart from the strip or from the
menu standing in for it, and subtle keeps none, the labels then reading as part of what surrounds them. The
mark the chosen tab wears stays either way, so the choice is as plain under one step as under the other. No
loud step is offered, a rule being as far as a strip goes.
Tabs stating nothing take the look the area around them is written in, from the --tile--look token the design
system carries, which is normal where nothing assigns it; an area written loud lands on normal as well,
there being no step above it here. A look stated here answers to that alone, so a strip asking for the rule
keeps it inside a quietened panel.
The content of each panel, keyed by its label in display order; a label with no content marks a disabled panel.
The tabbed panel
TypeError If panels includes a blank label
Creates a tabbed layout panel.
Presents the labels of the panels given, in order, and the content of the one currently chosen, starting from the first one on offer. A panel is chosen with the pointer or with the keyboard, the arrow keys stepping to either neighbour and wrapping at both ends,
HomeandEndjumping to either end of the strip.A panel given no content is disabled: its label keeps its place, marked as such, but no gesture ever brings it on show, a pointer choice on its label being refused and keyboard steps and jumps between the labels passing it by.
Where the labels would not fit on one line, the strip gives way to a menu offering the same choice under the same rules, worked with the keys the platform gives a menu of its own: the labels keep their order, a disabled one stays out of reach, and the panel on show carries on unchanged, named as before but presented as a plain region rather than as a tab panel. The strip comes back as soon as the labels fit again, so which of the two a reader meets follows the room the widget is given rather than anything the caller states.
Every panel on offer stays in the document while another is on show, so what it holds keeps its state throughout, at the cost of being rendered whether or not it is visible. The panels are taken as they stand when the widget first renders: a label added or removed later leaves the strip unchanged.