If you don't see your icon, see the section adding new icons for instructions on adding a new icon. Remember, icons are a separate package; installed via
npm install @versionone/icons
{() => {
const names = Object.keys(AllIcons).filter(
name => name !== 'BaseIcon' && name !== '__esModule',
)
const length = names.length
const firstColumn = names.slice(0, length / 2)
const secondColumn = names.slice(length / 2, length)
const buildList = items =>
items.map(iconKey => {
const Icon = AllIcons[iconKey]
const name = iconKey
return (
<SpacedGroup key={iconKey} center>
<Icon />
<CopyToClipboard text={iconKey}>
<span style={{ cursor: 'pointer' }}>{name}
</CopyToClipboard>
</SpacedGroup>
)
})
return (
<Grid>
<SpacedGroup direction="vertical" xs={2}>
{buildList(firstColumn)}
</SpacedGroup>
<SpacedGroup direction="vertical" xs={2}>
{buildList(secondColumn)}
</SpacedGroup>
</Grid>
)
}}
</Playground>