Skip to content

Instantly share code, notes, and snippets.

@landitus
Created October 6, 2018 02:14
Show Gist options
  • Save landitus/7ce1a0bb4423af6abf72f6f65192ed1f to your computer and use it in GitHub Desktop.
Save landitus/7ce1a0bb4423af6abf72f6f65192ed1f to your computer and use it in GitHub Desktop.
const List = styled.ul`
display: flex;
`
const ListItem = styled.li`
margin-right: 16px;
`
const Example = () => {
return (
<nav>
<List>
<ListItem>
<Button size="compressed" href="#" icon="chevron-left">
First
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#" icon="chevron-left" />
</ListItem>
<ListItem>
<Button size="compressed" href="#">
1
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#">
2
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#">
3
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#">
4
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#">
5
</Button>
</ListItem>
<ListItem>
<Button size="compressed" href="#" icon="chevron-right" />
</ListItem>
<ListItem>
<Button size="compressed" href="#" icon="chevron-right">
Last
</Button>
</ListItem>
</List>
</nav>
)
}
render(Example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment