All files / src/components/ui/icons CheckIcon.tsx

100% Statements 35/35
100% Branches 1/1
100% Functions 1/1
100% Lines 35/35

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 23 24 25 26 27 28 29 30 31 32 33 34 35 361x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x 111x  
/**
 * CheckIcon - Simple checkmark icon
 * Commonly used for checkboxes, selected states, completed tasks, and confirmations
 *
 * @example
 * ```tsx
 * <CheckIcon /> // Default 10x10
 * <CheckIcon width={16} height={16} />
 * <CheckIcon className="text-white" />
 * ```
 */
export default function CheckIcon({
  width = 10,
  height = 10,
  className = '',
  ...props
}: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      {...props}
      className={className}
      width={width}
      height={height}
      viewBox="0 0 10 10"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      stroke="currentColor"
      strokeWidth={1.94437}
      strokeLinecap="round"
      strokeLinejoin="round"
    >
      <path d="M8.33317 2.5L3.74984 7.08333L1.6665 5" />
    </svg>
  );
}