Skip to content

Commit

Permalink
chore: add new chevron icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Jan 5, 2024
1 parent cdaf407 commit 2cbcf7d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/components/icons/ChevronLeft.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';

const ChevronLeft = ({
className,
title,
}: {
className?: string;
title?: string;
}) => (
<svg
{...(!title ? { 'aria-hidden': 'true' } : {})}
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
className={className}
aria-label={title}
>
<path d="M15 18L9 12 15 6"></path>
</svg>
);

export default ChevronLeft;
28 changes: 28 additions & 0 deletions src/components/icons/ChevronRight.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';

const ChevronRight = ({
className,
title,
}: {
className?: string;
title?: string;
}) => (
<svg
{...(!title ? { 'aria-hidden': 'true' } : {})}
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
className={className}
aria-label={title}
>
<path d="M9 18L15 12 9 6"></path>
</svg>
);

export default ChevronRight;

0 comments on commit 2cbcf7d

Please sign in to comment.