Files
react/components/button-dropdown/icon.tsx
witt d4a1e02430 feat(scaleable): add scaleable props to each component (#531)
* 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
2021-06-23 10:53:30 +08:00

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