mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-26 23:04:55 +08:00
docs(icons): use tabs for installing script
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user