mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-26 13:25:46 +08:00
* feat(scaleable): add scaleable props to each component * chore(scaleable): update the exported type * feat: apply scaleable to components chore: remove with-default test: improve testcase for scaleable chore: resolve test warning ci: upgrade nodejs to latest lts docs: fix type error in document site * docs: update documents to be compatible with scaleable chore: fix build errors * chore: remove all size-related attributes docs: improve guide document * docs: add scaleable documentation test: update snapshots chore: remove unused * feat: add scaleable to grid components * docs: improve docs * test: update snapshots * fix(grid): fix basic component props
34 lines
664 B
TypeScript
34 lines
664 B
TypeScript
import React from 'react'
|
|
|
|
interface Props {
|
|
color?: string
|
|
height?: string
|
|
}
|
|
|
|
const ButtonDropdownIcon: React.FC<Props> = ({ 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(0.6);
|
|
}
|
|
`}</style>
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
ButtonDropdownIcon.displayName = 'GeistButtonDropdownIcon'
|
|
export default ButtonDropdownIcon
|