Skip to content

Commit

Permalink
Merge pull request #72 from sopt-makers/feat/ic-write
Browse files Browse the repository at this point in the history
[Icon] feat : Add IconWrite svg component
  • Loading branch information
Brokyeom authored Apr 16, 2024
2 parents 54466e0 + 056c249 commit fa17864
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/early-queens-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/icons": patch
---

add IconWirte SVG asset.
34 changes: 34 additions & 0 deletions packages/icons/src/Icon/Editor/ic-write.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { HTMLAttributes, forwardRef } from "react";

interface IconTypeStrikethroughProps extends HTMLAttributes<SVGSVGElement> {}

const IconWrite = forwardRef<SVGSVGElement, IconTypeStrikethroughProps>(
(props, ref) => {
return (
<svg
{...props}
ref={ref}
fill="none"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8.47834 20.9474L2.82379 22C2.60531 22 2.39577 21.9132 2.24128 21.7587C2.08679 21.6042 2 21.3947 2 21.1762L3.05263 15.5217C3.05273 15.3035 3.13939 15.0942 3.29359 14.9399L15.9924 2.24109C16.1468 2.08672 16.3563 2 16.5747 2C16.7931 2 17.0025 2.08672 17.157 2.24109L21.7589 6.83992C21.9133 6.99439 22 7.20384 22 7.42223C22 7.64062 21.9133 7.85008 21.7589 8.00455L9.06014 20.7064C8.90577 20.8606 8.69653 20.9473 8.47834 20.9474Z"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M13.1111 6.44446L17.5555 10.8889"
stroke="currentColor"
stroke-width="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
}
);

export default IconWrite;
3 changes: 2 additions & 1 deletion packages/icons/src/Icon/Editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export { default as IconLineHeight } from "./ic-line-height";
export { default as IconParagraphSpacing } from "./ic-paragraph-spacing";
export { default as IconParagraphWrap } from "./ic-paragraph-wrap";
export { default as IconRightIndent } from "./ic-right-indent";
export { default as IconTypeStrikethrough } from "./ic-type-strikethrough";
export { default as IconType } from "./ic-type";
export { default as IconTypeStrikethrough } from "./ic-type-strikethrough";
export { default as IconUnderline } from "./ic-underline";
export { default as IconWrite } from "./ic-write";
export { default as IconZoomIn } from "./ic-zoom-in";
export { default as IconZoomOut } from "./ic-zoom-out";

0 comments on commit fa17864

Please sign in to comment.