feat(auto-complete): add component

This commit is contained in:
unix
2020-03-28 07:02:20 +08:00
parent 2930287d17
commit a52e400355
10 changed files with 543 additions and 155 deletions

View File

@@ -1,7 +1,13 @@
import React from 'react'
import useTheme from '../styles/use-theme'
const ButtonLoading: React.FC<{}> = React.memo(() => {
interface Props {
bgColor?: string
}
const ButtonLoading: React.FC<Props> = React.memo(({
bgColor,
}) => {
const theme = useTheme()
return (
<span className="loading">
@@ -21,7 +27,7 @@ const ButtonLoading: React.FC<{}> = React.memo(() => {
display: flex;
justify-content: center;
align-items: center;
background-color: ${theme.palette.accents_1};
background-color: ${bgColor || theme.palette.accents_1};
}
i {