Text from tab 1.
rx.tabs(
rx.tab_list(
rx.tab("Tab 1"),
rx.tab("Tab 2"),
rx.tab("Tab 3"),
),
rx.tab_panels(
rx.tab_panel(rx.text("Text from tab 1.")),
rx.tab_panel(rx.checkbox("Text from tab 2.")),
rx.tab_panel(
rx.button("Text from tab 3.", color="black")
),
),
bg="black",
color="white",
shadow="lg",
)
items
prop. Each tuple should contain a label and a panel.Text from tab 1.
rx.tabs(
items=[
("Tab 1", rx.text("Text from tab 1.")),
("Tab 2", rx.checkbox("Text from tab 2.")),
(
"Tab 3",
rx.button("Text from tab 3.", color="black"),
),
],
bg="black",
color="white",
shadow="lg",
)
An accessible tabs component that provides keyboard interactions and ARIA attributes described in the WAI-ARIA Tabs Design Pattern. Tabs, provides context and state for all components.
An element that serves as a label for one of the tab panels and can be activated to display that panel..
Wrapper for the Tab components.
An element that contains the content associated with a tab.
Wrapper for the Tab components.