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",
}}
>
<Box
css={{
display: "flex",
width: 500,
rowGap: "$100",
flexDirection: "column",
padding: "10px",
border: "1px dashed black",
}}
>
<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 value="tab2">Brazil</Tabs.Trigger>
</Tabs.List>
<StyledContent value="tab1">France is here 🇫🇷</StyledContent>
<StyledContent value="tab2">Brazil is here 🇧🇷</StyledContent>
</Tabs.Root>
</Box>
</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