Skip to content

Commit

Permalink
feat(icons): add ChevronUp icon
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSisb committed Feb 20, 2020
1 parent ebb8360 commit 5070b68
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/paste-icons/src/ChevronUpIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* This file was automatically generated with @twilio-labs/svg-to-react
*/
import * as React from 'react';
import {UID} from 'react-uid';
import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper';

export interface ChevronUpIconProps extends IconWrapperProps {
title?: string;
decorative: boolean;
}

const ChevronUpIcon: React.FC<ChevronUpIconProps> = ({as, size, iconColor, title, decorative}) => {
if (!decorative && title == null) {
throw new Error('[ChevronUpIcon]: Missing a title for non-decorative icon.');
}

return (
<IconWrapper as={as} size={size} iconColor={iconColor}>
<UID>
{uid => (
<svg role="img" aria-hidden={decorative} aria-labelledby={uid} width="100%" height="100%" viewBox="0 0 24 24">
{title ? <title id={uid}>{title}</title> : null}
<path
fill="currentColor"
fillRule="evenodd"
d="M11.628 10.166a.5.5 0 01.672-.066l.072.066 4.5 5a.5.5 0 01-.678.73l-.066-.062L12 11.247l-4.127 4.587a.5.5 0 01-.634.092l-.072-.054a.5.5 0 01-.092-.634l.054-.072 4.5-5z"
/>
</svg>
)}
</UID>
</IconWrapper>
);
};

ChevronUpIcon.displayName = 'ChevronUpIcon';
export {ChevronUpIcon};
3 changes: 3 additions & 0 deletions packages/paste-icons/svg/ChevronUp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5070b68

Please sign in to comment.