UNPKG

@nypl/dgx-svg-icons

Version:
59 lines (54 loc) 1.34 kB
import React from 'react'; import PropTypes from 'prop-types'; const RightArrowIcon = ({ viewBox, height, width, title, className, ariaHidden, preserveAspectRatio, iconId, svgRole, focusable, }) => ( <svg viewBox={viewBox} height={height} width={width} className={`${className} svgIcon`} aria-hidden={ariaHidden} preserveAspectRatio={preserveAspectRatio} aria-labelledby={iconId} role={svgRole} focusable={focusable} > <title id={iconId}>{title}</title> <polygon points="16.959 25.998 27.298 15.707 16.959 5.417 15.026 7.397 22.08 14.548 4.688 14.548 4.687 16.963 22.08 16.963 15.026 24.065 16.959 25.998" /> </svg> ); RightArrowIcon.propTypes = { className: PropTypes.string, title: PropTypes.string, height: PropTypes.string, width: PropTypes.string, viewBox: PropTypes.string, fill: PropTypes.string, style: PropTypes.object, ariaHidden: PropTypes.bool, preserveAspectRatio: PropTypes.string, svgRole: PropTypes.string, iconId: PropTypes.string, focusable: PropTypes.bool, }; RightArrowIcon.defaultProps = { ariaHidden: true, className: 'rightArrowIcon', title: 'NYPL Right Arrow Icon', width: '32', height: '32', viewBox: '0 0 32 32', preserveAspectRatio: 'xMidYMid meet', svgRole: 'img', }; export default RightArrowIcon;