Skip to content

Commit cb9bff7

Browse files
committed
feat: add IconClipboard component with checkmark option
1 parent 9ac22ce commit cb9bff7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/components/icons.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,34 @@ export const IconCheckBadge = ({
5555
</svg>
5656
);
5757

58+
export const IconClipboard = ({
59+
className = "size-6",
60+
withCheck = false,
61+
}: {
62+
className?: string;
63+
withCheck?: boolean;
64+
}) => (
65+
<svg
66+
xmlns="http://www.w3.org/2000/svg"
67+
fill="none"
68+
viewBox="0 0 24 24"
69+
strokeWidth={1.5}
70+
stroke="currentColor"
71+
className={className}
72+
>
73+
{/* Clipboard outline */}
74+
<path
75+
strokeLinecap="round"
76+
strokeLinejoin="round"
77+
d="M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"
78+
/>
79+
{/* Check mark inside */}
80+
{withCheck && (
81+
<path strokeLinecap="round" strokeLinejoin="round" d="M9 12l2 2 4-4" />
82+
)}
83+
</svg>
84+
);
85+
5886
export const IconCog = () => (
5987
<svg
6088
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)