Skip to content

Commit

Permalink
Merge pull request #2291 from anuradha9712/feat-figma-connect
Browse files Browse the repository at this point in the history
feat(figma): update figma code connect variable for button component
  • Loading branch information
innosatyam authored Jul 26, 2024
2 parents c021f55 + b7cc466 commit 42f3f1a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions figma/Button.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
'Icon Left': 'left',
'Icon Right': 'right',
}),
icon: figma.enum('Variant', {
'Icon Left': 'refresh',
'Icon Right': 'refresh',
}),
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => (
<Button appearance="basic" {...props}>
Expand All @@ -40,9 +47,16 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
'Icon Left': 'left',
'Icon Right': 'right',
}),
icon: figma.enum('Variant', {
'Icon Left': 'refresh',
'Icon Right': 'refresh',
}),
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => (
<Button appearance="primary" {...props}>
Expand All @@ -64,9 +78,16 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
'Icon Left': 'left',
'Icon Right': 'right',
}),
icon: figma.enum('Variant', {
'Icon Left': 'refresh',
'Icon Right': 'refresh',
}),
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => (
<Button appearance="alert" {...props}>
Expand All @@ -89,9 +110,16 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
'Icon Left': 'left',
'Icon Right': 'right',
}),
icon: figma.enum('Variant', {
'Icon Left': 'refresh',
'Icon Right': 'refresh',
}),
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => (
<Button appearance="transparent" {...props}>
Expand Down Expand Up @@ -120,6 +148,9 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => <Button icon="more_horiz" {...props} />,
});
Expand All @@ -143,6 +174,9 @@ figma.connect(Button, 'https://www.figma.com/design/w8sqBtJpvq86D06UE7gN0T/MDS--
disabled: figma.enum('State', {
Disabled: true,
}),
loading: figma.enum('State', {
Loading: true,
}),
},
example: (props) => (
<Button expanded={true} {...props}>
Expand Down

0 comments on commit 42f3f1a

Please sign in to comment.