Tab
An item in a Tabs component.
@solara.component
def Tab(
label: Union[None, str, solara.Element] = None,
icon_name: Optional[str] = None,
path_or_route: Union[None, str, "solara.Route"] = None,
disabled=False,
classes: List[str] = [],
style: Union[str, Dict[str, str], None] = None,
children: List[solara.Element] = [],
tab_children: List[Union[solara.Element, str]] = [],
):
...
(Note: This component is experimental and its API may change in the future.)
Should be a direct child of a Tabs.
Arguments
label
: The label of the tab.icon_name
: The name of the icon to display in the tab.path_or_route
: The path or route to navigate to when the tab is clicked.disabled
: Whether the tab is disabled.classes
: Additional CSS classes to apply.style
: CSS style to apply.children
: The children of the tab. These will be displayed when the tab is active.tab_children
: The children of the tab header. These will be displayed in the tab header, if a label or icon_name is provided they are prepended to thetab_children
.
Example
Tab 1
Tab 2
Hello