forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableCellLeftControls.figma.tsx
More file actions
43 lines (41 loc) · 1.03 KB
/
TableCellLeftControls.figma.tsx
File metadata and controls
43 lines (41 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import figma from '@figma/code-connect';
import { Td } from '@patternfly/react-table';
// Documentation for Table can be found at https://www.patternfly.org/components/table
figma.connect(Td, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=2930-36766', {
props: {
selectAll: figma.boolean('Row select', {
true: (
<Td
select={{
onSelect: () => {},
isSelected: false
}}
aria-label="Row select"
/>
),
false: undefined
}),
expandableAll: figma.boolean('Row expansion', {
true: (
<Td
expand={{
onToggle: () => {}
}}
aria-label="Row expand"
/>
),
false: undefined
}),
isDraggable: figma.boolean('Is draggable', {
true: <Td draggableRow={{ id: `draggable-row-id` }} />,
false: undefined
})
},
example: (props) => (
<>
{props.selectAll}
{props.expandableAll}
{props.isDraggable}
</>
)
});