export default function Example() {
const StyledContent = styled(Tabs.Content, {
minHeight: "50px",
paddingTop: "20px",
color: theme.colors.primary,
});
return (
<>
<Box
css={{
display: "flex",
width: 500,
rowGap: "$100",
flexDirection: "column",
}}
>
<Tabs.Root defaultValue="tab1">
<Tabs.List aria-label="Countries' information">
<Tabs.Trigger value="tab1">
<Icon label="trigger icon" size="100">
<Info />
</Icon>
France
</Tabs.Trigger>
<Tabs.Trigger disabled value="tab2">
Brazil
</Tabs.Trigger>
<Tabs.Trigger value="tab3">
<Icon label="trigger icon" size="100">
<Info />
</Icon>
The Democratic Republic of the Congo
</Tabs.Trigger>
<Tabs.Trigger value="tab4">Vietnam</Tabs.Trigger>
<Tabs.Trigger value="tab5">Papua New Guinea</Tabs.Trigger>
<Tabs.Trigger value="tab6">Venezuela</Tabs.Trigger>
<Tabs.Trigger value="tab7">Kenya</Tabs.Trigger>
<Tabs.Trigger value="tab8">Austria</Tabs.Trigger>
</Tabs.List>
<StyledContent value="tab1">France is here 🇫🇷</StyledContent>
<StyledContent value="tab2">
Brazil is here 🇧🇷 This is disabled and should not show
</StyledContent>
<StyledContent value="tab3">
The Democratic Republic of the Congo is here 🇨🇩
</StyledContent>
<StyledContent value="tab4">Vietnam is here 🇻🇳</StyledContent>
<StyledContent value="tab5">
Papua New Guinea is here 🇵🇬
</StyledContent>
<StyledContent value="tab6">Venezuela is here 🇻🇪</StyledContent>
<StyledContent value="tab7">Kenya is here 🇰🇪</StyledContent>
<StyledContent value="tab8">Austira is here 🇦🇹</StyledContent>
</Tabs.Root>
</Box>
</>
);
}
To enter the code editing mode, press Enter. To exit the edit mode, press Escape
You are editing the code. To exit the edit mode, press Escape