Skip to content

Commit b81b3ee

Browse files
committed
feat: add filled Help icon.
1 parent e1f5104 commit b81b3ee

File tree

1 file changed

+40
-17
lines changed
  • thingconnect.pulse.client/src/icons

1 file changed

+40
-17
lines changed
Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,42 @@
11
import type { ComponentPropsWithoutRef } from 'react';
22

3-
export const Help = (props: ComponentPropsWithoutRef<'svg'>) => (
4-
<svg
5-
width="16"
6-
height="16"
7-
viewBox="0 0 24 24"
8-
fill="none"
9-
stroke="currentColor"
10-
strokeWidth="2"
11-
strokeLinecap="round"
12-
strokeLinejoin="round"
13-
{...props}
14-
>
15-
<circle cx="12" cy="12" r="10"/>
16-
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
17-
<path d="m12 17 .01 0"/>
18-
</svg>
19-
);
3+
export const Help = (props: ComponentPropsWithoutRef<'svg'>) => {
4+
const maskId = `help-mask-${Math.random().toString(36).slice(2, 9)}`;
5+
6+
return (
7+
<svg
8+
xmlns='http://www.w3.org/2000/svg'
9+
width='24'
10+
height='24'
11+
viewBox='0 0 24 24'
12+
fill='currentColor'
13+
aria-hidden='true'
14+
{...props}
15+
>
16+
<g transform='scale(1.09) translate(-1,-1)'>
17+
<defs>
18+
<mask id={maskId} maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'>
19+
<circle cx='12' cy='12' r='10' fill='white' />
20+
<path
21+
d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'
22+
stroke='black'
23+
strokeWidth='2'
24+
strokeLinecap='round'
25+
strokeLinejoin='round'
26+
fill='none'
27+
/>
28+
<path
29+
d='M12 17h.01'
30+
stroke='black'
31+
strokeWidth='2'
32+
strokeLinecap='round'
33+
strokeLinejoin='round'
34+
fill='none'
35+
/>
36+
</mask>
37+
</defs>
38+
<rect x='0' y='0' width='24' height='24' fill='currentColor' mask={`url(#${maskId})`} />
39+
</g>
40+
</svg>
41+
);
42+
};

0 commit comments

Comments
 (0)