Four hand-written React icon wrappers (Information, Checkmark, Warning, XMark) with the source SVGs kept under svg/ for reference.
28 lines
663 B
TypeScript
28 lines
663 B
TypeScript
import { forwardRef } from "react";
|
|
import type { SVGProps } from "react";
|
|
|
|
export const CheckmarkIcon = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
|
|
function CheckmarkIcon(props, ref) {
|
|
return (
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="1em"
|
|
height="1em"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
focusable={false}
|
|
aria-hidden
|
|
ref={ref}
|
|
{...props}
|
|
>
|
|
<path
|
|
fillRule="evenodd"
|
|
clipRule="evenodd"
|
|
d="M9.55 17.05 4.5 12l1.4-1.4 3.65 3.64L18.1 5.7l1.4 1.4-9.95 9.95Z"
|
|
fill="currentColor"
|
|
/>
|
|
</svg>
|
|
);
|
|
},
|
|
);
|