Skip to content

Commit

Permalink
some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Dec 17, 2024
1 parent d5109c2 commit e931ccf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/react/src/ActionList/ActionList.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,33 @@ 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'),
}),
leadingVisual: figma.instance('leadingVisual'),
},
variant: {'leadingVisual?': true},
example: ({text, selected, currentSelection, leadingVisual}) => (
<ActionList.Item selected={selected} active={currentSelection} variant="default">
<ActionList.LeadingVisual>{leadingVisual}</ActionList.LeadingVisual>
{text.label}
</ActionList.Item>
),
},
)
figma.connect(
ActionList.Item,
'https://www.figma.com/design/GCvY3Qv8czRgZgvl1dG6lp/Primer-Web?node-id=15614-56202&m=dev',
Expand Down

0 comments on commit e931ccf

Please sign in to comment.