metadata-based-explorer1
Version:
Box UI Elements
36 lines (31 loc) • 1.13 kB
Flow
// @flow
import * as React from 'react';
import AccessibleSVG from '../accessible-svg';
type Props = {
className?: string,
color?: string,
height?: number,
/** A text-only string describing the icon if it's not purely decorative for accessibility */
title?: string | React.Element<any>,
width?: number,
};
const IconCalendar = ({ className = '', color = '#BABABA', height = 17, title, width = 16 }: Props) => (
<AccessibleSVG
className={`icon-calendar ${className}`}
height={height}
title={title}
viewBox="0 0 16 17"
width={width}
>
<g fill="none" fillRule="evenodd" transform="translate(0 1)">
<rect className="fill-color" fill={color} height={height} rx="2" width={width} y="2" />
<rect fill="#FFF" height="9" rx="1" width="13.75" x="1.25" y="6" />
<path
className="fill-color"
d="M11 7h2.5v2.5H11zM7 11h2.5v2.5H7zM3 11h2.5v2.5H3zM7 7h2.5v2.5H7zM3 7h2.5v2.5H3z"
fill={color}
/>
</g>
</AccessibleSVG>
);
export default IconCalendar;