Skip to content

Commit 4c4dde8

Browse files
committed
f
1 parent c6b62f3 commit 4c4dde8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/docs/src/components/options-modal.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ToVueOptions } from '@builder.io/mitosis';
1+
import { ToReactOptions, ToVueOptions } from '@builder.io/mitosis';
22
import { $, Signal, component$, useSignal } from '@builder.io/qwik';
33
import { OutputFramework } from '~/services/compile';
44
import Select from './select';
@@ -37,7 +37,7 @@ export const getDefaultOptions = (target: OutputFramework) => {
3737

3838
const _getOptions = (target:OutputFramework) => {
3939
switch (target) {
40-
case 'vue':
40+
case 'vue':{
4141
const o: Array<Option<ToVueOptions>> = [{
4242
name: 'casing',
4343
type: 'enum',
@@ -51,9 +51,19 @@ const _getOptions = (target:OutputFramework) => {
5151
default: 'composition'
5252
}]
5353

54-
return o
54+
return o}
5555

56-
56+
case 'react': {
57+
58+
const o: Array<Option<ToReactOptions>> = [{
59+
name: 'stylesType',
60+
type: 'enum',
61+
enum: [
62+
'emotion', 'styled-components', 'styled-jsx', 'react-native', 'style-tag'
63+
],
64+
default: 'style-tag'
65+
}]
66+
return o }
5767
default:
5868
return []
5969
}

0 commit comments

Comments
 (0)