-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathColumnHeaderLeftControls.figma.tsx
More file actions
43 lines (41 loc) · 1.03 KB
/
ColumnHeaderLeftControls.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 { Th } from '@patternfly/react-table';
// Documentation for BasicRow can be found at https://www.patternfly.org/components/table
figma.connect(Th, 'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=6241-29618', {
props: {
selectAll: figma.boolean('Select all', {
true: (
<Th
select={{
onSelect: () => {},
isSelected: false
}}
aria-label="Row select"
/>
),
false: undefined
}),
expandableAll: figma.boolean('Expandable all', {
true: (
<Th
expand={{
onToggle: () => {}
}}
aria-label="Row expand"
/>
),
false: undefined
}),
isDraggable: figma.boolean('Is draggable', {
true: <Th draggableRow={{ id: `draggable-row-id` }} />,
false: undefined
})
},
example: (props) => (
<>
{props.selectAll}
{props.expandableAll}
{props.isDraggable}
</>
)
});