mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-12 17:21:18 +08:00
26 lines
569 B
TypeScript
26 lines
569 B
TypeScript
import React from 'react'
|
|
|
|
interface Props {
|
|
color?: string
|
|
height?: string
|
|
}
|
|
|
|
const ButtonDropdownIcon: React.FC<Props> = React.memo(({
|
|
color, height,
|
|
}) => {
|
|
return (
|
|
<svg stroke={color} style={{ color }} viewBox="0 0 24 24" width={height} height={height} strokeWidth="1" strokeLinecap="round"
|
|
strokeLinejoin="round" fill="none" shapeRendering="geometricPrecision" >
|
|
<path d="M6 9l6 6 6-6" />
|
|
|
|
<style jsx>{`
|
|
svg {
|
|
transform: scale(.6);
|
|
}
|
|
`}</style>
|
|
</svg>
|
|
)
|
|
})
|
|
|
|
export default ButtonDropdownIcon
|