docs(icons): use tabs for installing script

This commit is contained in:
Ofek Ashery
2020-05-01 19:19:54 +03:00
committed by unix
parent f929e8cd87
commit b37c98e4de
2 changed files with 20 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
import React from 'react'
import { Card, Input, Text, useInput } from 'components'
import { Card, Input, Text, useInput, useTheme } from 'components'
import * as Icon from '@zeit-ui/react-icons'
const Icons: React.FC = () => {
const theme = useTheme()
const { state: query, bindings } = useInput('')
const icons = Object.entries(Icon).filter(
([name]) => !query || name.toLowerCase().includes(query.toLowerCase())
@@ -51,6 +52,11 @@ const Icons: React.FC = () => {
min-width: 0px;
height: 100px;
}
@media only screen and (max-width: ${theme.layout.breakpointMobile}) {
.icon-item {
flex-basis: 33%;
}
}
`}</style>
</>
)