-
Notifications
You must be signed in to change notification settings - Fork 381
Expand file tree
/
Copy pathCheckbox.figma.tsx
More file actions
41 lines (39 loc) · 1.11 KB
/
Checkbox.figma.tsx
File metadata and controls
41 lines (39 loc) · 1.11 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
import figma from '@figma/code-connect';
import { Checkbox } from '@patternfly/react-core';
// Documentation for CheckboxInput can be found at https://www.patternfly.org/components/form/checkbox
figma.connect(
Checkbox,
'https://www.figma.com/design/VMEX8Xg2nzhBX8rfBx53jp/PatternFly-6--Components?node-id=157-3078',
{
props: {
ariaLabel: figma.enum('Type', {
Standalone: figma.string('Toggle label')
}),
label: figma.enum('Type', {
'With label': figma.string('Toggle label')
}),
labelPosition: figma.enum('Label placement', {
End: 'end',
Reversed: 'start'
}),
isDisabled: figma.enum('State', {
Disabled: true
}),
description: figma.boolean('Description', {
true: 'Description text',
false: undefined
})
},
example: (props) => (
<Checkbox
aria-label={props.ariaLabel}
description={props.description}
id="checkbox"
isDisabled={props.isDisabled}
label={props.label}
labelPosition={props.labelPosition}
name="checkbox"
/>
)
}
);