This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new arrow for new menu (#527)
* feat: add new arrow for new menu * fix: rename arrow to chevron * fix: replace thickArrowDown with chevronDownThick
- Loading branch information
Showing
3 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import Icon from '../icon'; | ||
|
||
export default function ChevronDownMedium({ | ||
fill, | ||
style: styleProp, | ||
...rest // eslint-disable-line comma-dangle | ||
}) { | ||
const style = { | ||
...styleProp, | ||
...Icon.defaultProps.style, | ||
}; | ||
return ( | ||
<svg style={style} {...rest}> | ||
<path | ||
d="M14 .0814404l1.414214 1.3889597L7.707107 9.03988 0 1.4704001 1.414214.0814404l6.292893 6.1805201z" | ||
fill={fill} | ||
fillRule="nonzero" | ||
/> | ||
</svg> | ||
); | ||
} | ||
|
||
ChevronDownMedium.propTypes = { | ||
...Icon.propTypes, | ||
fill: PropTypes.string, | ||
}; | ||
|
||
ChevronDownMedium.defaultProps = { | ||
...Icon.defaultProps, | ||
viewBox: '0 0 16 9', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters