tab
Makes the child the body of a tab titled title, at the position it is emitted in.
A header takes over what the tab strip renders for this tab. title and icon keep their meaning either way: they name the tab for accessibility and remain the values recomposition writes, so a tab that renders only a header is still named.
mnemonic selects the tab from the keyboard together with the look and feel's mouseless modifier, and the tab underlines the first character of title that key names. displayedMnemonicIndex takes that choice over where another character is to carry the underline; give each tab of one pane a mnemonic of its own, since the pane picks among tabs sharing one arbitrarily.
The tab keeps what its body remembers, and the components that body is realized as, for as long as the child holding this declaration keeps its composition identity - which is the position it is emitted in unless androidx.compose.runtime.key gives it one of its own. A child emitted ahead of an unkeyed body therefore hands it the tab already standing in that position.
Return
this chain with the tab declared on it.
Parameters
the tab's title
the tab's icon, or null for none
the tab's tooltip, or null for none
whether the tab can be selected
the key code selecting this tab, as a java.awt.event.KeyEvent VK_ constant, or -1 for none
the color the tab itself is drawn in, or null for the pane's own
the color the tab's title is drawn in, or null for the pane's own