Skip to content

Commit 70529b1

Browse files
committed
feat(CC-batch-3): added code and children to codeEditor
1 parent 6872ce2 commit 70529b1

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

packages/code-connect/components/CodeEditor/CodeEditor.figma.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@ figma.connect(
77
{
88
props: {
99
// TODO: FIGMA: configure options for actions
10-
actions: `action1, action2, action3, action4, action5`,
10+
actions: 'action1, action2, action3, action4, action5',
1111

1212
// boolean
1313
showsLineNumbers: figma.boolean('Show Line Numbers'),
1414

1515
// enum
16-
isEmptyState: figma.enum('Type', { 'Empty state': true }),
17-
isMinimapVisible: figma.enum('Type', { 'Mini Map': true })
16+
isMinimapVisible: figma.enum('Type', { 'Mini Map': true }),
17+
18+
children: figma.children('*')
1819
},
1920
example: (props) => (
2021
// Documentation for CodeEditor can be found at https://www.patternfly.org/components/code-editor
2122
<CodeEditor
2223
actions={props.actions}
23-
emptyState={props.isEmptyState}
2424
isLineNumbersVisible={props.showsLineNumbers}
2525
isMinimapVisible={props.isMinimapVisible}
26-
/>
26+
code="code editor contents"
27+
>
28+
{props.children}
29+
</CodeEditor>
2730
)
2831
}
2932
);

0 commit comments

Comments
 (0)