File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,14 @@ export type IconName = 'Info' | 'CornerUpLeft' | 'Minimize2'
2
2
3
3
type IconProps = {
4
4
name : IconName
5
+ color ?: string
5
6
}
6
7
7
- export function Feather ( { name, ...rest } : IconProps ) {
8
+ export function Feather ( {
9
+ name,
10
+ color = 'rgb(255,67,10)' ,
11
+ ...rest
12
+ } : IconProps ) {
8
13
switch ( name ) {
9
14
case 'Info' :
10
15
return (
@@ -14,7 +19,7 @@ export function Feather({ name, ...rest }: IconProps) {
14
19
height = '14'
15
20
viewBox = '0 0 24 24'
16
21
fill = 'none'
17
- stroke = 'rgb(255,67,10)'
22
+ stroke = { color }
18
23
strokeWidth = '2'
19
24
strokeLinecap = 'round'
20
25
strokeLinejoin = 'round'
@@ -33,7 +38,7 @@ export function Feather({ name, ...rest }: IconProps) {
33
38
height = '20'
34
39
viewBox = '0 0 24 24'
35
40
fill = 'none'
36
- stroke = 'rgb(255,67,10)'
41
+ stroke = { color }
37
42
strokeWidth = '2'
38
43
strokeLinecap = 'round'
39
44
strokeLinejoin = 'round'
@@ -51,7 +56,7 @@ export function Feather({ name, ...rest }: IconProps) {
51
56
height = '20'
52
57
viewBox = '0 0 24 24'
53
58
fill = 'none'
54
- stroke = 'rgb(255,67,10)'
59
+ stroke = { color }
55
60
strokeWidth = '2'
56
61
strokeLinecap = 'round'
57
62
strokeLinejoin = 'round'
Original file line number Diff line number Diff line change @@ -2,9 +2,14 @@ export type IconName = 'Info' | 'CornerUpLeft' | 'Minimize2'
2
2
3
3
type IconProps = {
4
4
name : IconName
5
+ color ?: string
5
6
}
6
7
7
- export function Feather ( { name, ...rest } : IconProps ) {
8
+ export function Feather ( {
9
+ name,
10
+ color = 'rgb(255,67,10)' ,
11
+ ...rest
12
+ } : IconProps ) {
8
13
switch ( name ) {
9
14
case 'Info' :
10
15
return (
@@ -14,7 +19,7 @@ export function Feather({ name, ...rest }: IconProps) {
14
19
height = '14'
15
20
viewBox = '0 0 24 24'
16
21
fill = 'none'
17
- stroke = 'rgb(255,67,10)'
22
+ stroke = { color }
18
23
strokeWidth = '2'
19
24
strokeLinecap = 'round'
20
25
strokeLinejoin = 'round'
@@ -33,7 +38,7 @@ export function Feather({ name, ...rest }: IconProps) {
33
38
height = '20'
34
39
viewBox = '0 0 24 24'
35
40
fill = 'none'
36
- stroke = 'rgb(255,67,10)'
41
+ stroke = { color }
37
42
strokeWidth = '2'
38
43
strokeLinecap = 'round'
39
44
strokeLinejoin = 'round'
@@ -51,7 +56,7 @@ export function Feather({ name, ...rest }: IconProps) {
51
56
height = '20'
52
57
viewBox = '0 0 24 24'
53
58
fill = 'none'
54
- stroke = 'rgb(255,67,10)'
59
+ stroke = { color }
55
60
strokeWidth = '2'
56
61
strokeLinecap = 'round'
57
62
strokeLinejoin = 'round'
You can’t perform that action at this time.
0 commit comments