All files / src/arrow TriangleArrow.tsx

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22        63x 63x               63x             23x  
import React from 'react';
 
export interface TriangleArrowProps extends React.SVGProps<SVGSVGElement> {}
export function TriangleArrow(props: TriangleArrowProps) {
  const { style, ...reset } = props;
  const defaultStyle: React.CSSProperties = {
    cursor: 'pointer',
    height: '1em',
    width: '1em',
    userSelect: 'none',
    display: 'inline-flex',
    ...style,
  };
  return (
    <svg viewBox="0 0 24 24" fill="var(--w-rjv-arrow-color, currentColor)" style={defaultStyle} {...reset}>
      <path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"></path>
    </svg>
  );
}
 
TriangleArrow.displayName = 'JVR.TriangleArrow';