Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
image02 for component hierarchy post
const LeftNavWithIcons = () => {
return (
<Box padding="m">
<Nav>
<List>
<ListItem>
<Icon type="home" />
<Link href="/">Home</Link>
</ListItem>
<ListItem>
<Icon type="about" />
<Link href="/about">About</Link>
</ListItem>
<ListItem>
<Icon type="blog" />
<Link href="/blog">Blog</Link>
</ListItem>
<ListItem>
<Icon type="contact" />
<Link href="/contact">Contact</Link>
</ListItem>
</List>
</Nav>
</Box>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment