Skip to content

Commit e716555

Browse files
committed
update Feather Icon
1 parent 13c0839 commit e716555

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

packages/shadergradient/src-dev/Controls/Tools/Feather.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ export type IconName = 'Info' | 'CornerUpLeft' | 'Minimize2'
22

33
type IconProps = {
44
name: IconName
5+
color?: string
56
}
67

7-
export function Feather({ name, ...rest }: IconProps) {
8+
export function Feather({
9+
name,
10+
color = 'rgb(255,67,10)',
11+
...rest
12+
}: IconProps) {
813
switch (name) {
914
case 'Info':
1015
return (
@@ -14,7 +19,7 @@ export function Feather({ name, ...rest }: IconProps) {
1419
height='14'
1520
viewBox='0 0 24 24'
1621
fill='none'
17-
stroke='rgb(255,67,10)'
22+
stroke={color}
1823
strokeWidth='2'
1924
strokeLinecap='round'
2025
strokeLinejoin='round'
@@ -33,7 +38,7 @@ export function Feather({ name, ...rest }: IconProps) {
3338
height='20'
3439
viewBox='0 0 24 24'
3540
fill='none'
36-
stroke='rgb(255,67,10)'
41+
stroke={color}
3742
strokeWidth='2'
3843
strokeLinecap='round'
3944
strokeLinejoin='round'
@@ -51,7 +56,7 @@ export function Feather({ name, ...rest }: IconProps) {
5156
height='20'
5257
viewBox='0 0 24 24'
5358
fill='none'
54-
stroke='rgb(255,67,10)'
59+
stroke={color}
5560
strokeWidth='2'
5661
strokeLinecap='round'
5762
strokeLinejoin='round'

packages/shadergradient/src/Controls/Tools/Feather.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ export type IconName = 'Info' | 'CornerUpLeft' | 'Minimize2'
22

33
type IconProps = {
44
name: IconName
5+
color?: string
56
}
67

7-
export function Feather({ name, ...rest }: IconProps) {
8+
export function Feather({
9+
name,
10+
color = 'rgb(255,67,10)',
11+
...rest
12+
}: IconProps) {
813
switch (name) {
914
case 'Info':
1015
return (
@@ -14,7 +19,7 @@ export function Feather({ name, ...rest }: IconProps) {
1419
height='14'
1520
viewBox='0 0 24 24'
1621
fill='none'
17-
stroke='rgb(255,67,10)'
22+
stroke={color}
1823
strokeWidth='2'
1924
strokeLinecap='round'
2025
strokeLinejoin='round'
@@ -33,7 +38,7 @@ export function Feather({ name, ...rest }: IconProps) {
3338
height='20'
3439
viewBox='0 0 24 24'
3540
fill='none'
36-
stroke='rgb(255,67,10)'
41+
stroke={color}
3742
strokeWidth='2'
3843
strokeLinecap='round'
3944
strokeLinejoin='round'
@@ -51,7 +56,7 @@ export function Feather({ name, ...rest }: IconProps) {
5156
height='20'
5257
viewBox='0 0 24 24'
5358
fill='none'
54-
stroke='rgb(255,67,10)'
59+
stroke={color}
5560
strokeWidth='2'
5661
strokeLinecap='round'
5762
strokeLinejoin='round'

0 commit comments

Comments
 (0)