✨ Add aksel-icons package (@navikt/aksel-icons)
Four hand-written React icon wrappers (Information, Checkmark, Warning, XMark) with the source SVGs kept under svg/ for reference.
This commit is contained in:
1 parent
559fd2b971
commit
1bcf7f5d53
11 files changed
+162
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { forwardRef } from "react";
|
||||
import type { SVGProps } from "react";
|
||||
|
||||
export const XMarkIcon = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
|
||||
function XMarkIcon(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="M6.4 5 12 10.6 17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4L12 13.4 6.4 19 5 17.6 10.6 12 5 6.4 6.4 5Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user