One tab in a tab_bar, drawn selected when active.
- text: the tab's title. It is copied for the frame.
- active: whether this is the selected tab.
- options: whether it shows an unsaved dot or a close button.
- loc: the call site. It identifies the widget from one frame to the next, so leave the default.
tab :: (
text: string,
active: bool,
options: Tab_Options = .{},
loc := #caller_location
) -> Tab_Result
One tab in a tab_bar, drawn selected when active.
Parameters
- text: string
- the tab's title. It is copied for the frame.
- active: bool
- whether this is the selected tab.
- options: Tab_Options
- whether it shows an unsaved dot or a close button.
- loc := #caller_location
- the call site. It identifies the widget from one frame to the next, so leave the default.