Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Dec 17, 2024
1 parent 0e3c1c1 commit d5109c2
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion packages/react/src/ActionList/ActionList.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ figma.connect(
},
)

/** DANER ITEM */
/** DANGER ITEM */
figma.connect(
ActionList.Item,
'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=15614-56205&m=dev',
Expand Down Expand Up @@ -162,3 +162,29 @@ figma.connect(
),
},
)
/** Single Select ITEM */
figma.connect(
ActionList.Item,
'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=15614-56202&m=dev',
{
props: {
size: figma.enum('size', {
small: 'small',
medium: 'medium',
large: 'large',
}),
selected: figma.boolean('selected?'),
currentSelection: figma.boolean('currentSelection'),
text: figma.nestedProps('label and description', {
label: figma.textContent('label'),
description: figma.textContent('description'),
}),
},
variant: {'leadingVisual?': false},
example: ({text, selected, currentSelection}) => (
<ActionList.Item selected={selected} active={currentSelection} variant="default">
{text.label}
</ActionList.Item>
),
},
)

0 comments on commit d5109c2

Please sign in to comment.