Skip to content

Commit be5d3a8

Browse files
authored
Merge pull request #850 from await-ovo/add-missing-settings
chore(website): add dimensions, exportType, namedExport and jsxRuntime settings in playground
2 parents 7988e6f + edd8bef commit be5d3a8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

website/src/components/playground/config/settings.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ const initialSvgoConfig = JSON.stringify(
2525
const initialPrettierConfig = JSON.stringify({ semi: false }, null, 2)
2626

2727
export const settings = [
28+
{
29+
label: 'Dimensions',
30+
name: 'dimensions',
31+
type: 'boolean',
32+
group: 'global',
33+
default: true,
34+
},
2835
{
2936
label: 'Icon',
3037
name: 'icon',
@@ -101,6 +108,31 @@ export const settings = [
101108
transform: parseObject,
102109
default: '',
103110
},
111+
{
112+
label: 'Export Type',
113+
name: 'exportType',
114+
type: 'enum',
115+
values: ['named', 'default'],
116+
group: 'global',
117+
default: 'default',
118+
},
119+
{
120+
label: 'Named export',
121+
name: 'namedExport',
122+
placeholder: 'ReactComponent',
123+
type: 'string',
124+
group: 'global',
125+
default: 'ReactComponent',
126+
},
127+
{
128+
label: 'JSX runtime',
129+
name: 'jsxRuntime',
130+
type: 'enum',
131+
values: ['classic', 'classic-preact', 'automatic', 'none'],
132+
group: 'global',
133+
transform: (value) => (value === 'none' ? 'classic' : value),
134+
default: 'none',
135+
},
104136
{
105137
label: 'Enable',
106138
name: 'svgo',

0 commit comments

Comments
 (0)