Skip to content

Commit

Permalink
Fixing DropdownMenu figma side props
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Dec 19, 2024
1 parent 2079fff commit dbca432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions figma.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"codeConnect": {
"parser": "react",
"include": ["src/components/**/*.{tsx,jsx}"],
"importPaths": {
"src/components/*": "@0xsequence/design-system"
Expand Down
12 changes: 5 additions & 7 deletions src/components/DropdownMenu/DropdownMenu.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,18 @@ figma.connect(
'https://www.figma.com/design/0OB1JVXSqaxmJDrP7qAMJr?node-id=11510%3A28005',
{
props: {
// No matching props could be found for these Figma properties:
// "showButton": figma.boolean('Show button'),
// "ponting": figma.enum('ponting', {
// "default": "default",
// "inverted": "inverted"
// })
side: figma.enum('ponting', {
default: 'bottom',
inverted: 'top',
}),
},
example: props => (
<DropdownMenuRoot>
<DropdownMenuRoot>
<DropdownMenuTrigger asChild>
<IconButton icon={ContextMenuIcon} />
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuContent side={props.side}>
<DropdownMenuItem>Item 1</DropdownMenuItem>
<DropdownMenuItem>Item 2</DropdownMenuItem>
<DropdownMenuItem>Item 3</DropdownMenuItem>
Expand Down

0 comments on commit dbca432

Please sign in to comment.