Skip to content

Commit

Permalink
Merge pull request #850 from await-ovo/add-missing-settings
Browse files Browse the repository at this point in the history
chore(website): add dimensions, exportType, namedExport and jsxRuntime settings in playground
  • Loading branch information
gregberge committed Apr 6, 2023
2 parents 7988e6f + edd8bef commit be5d3a8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions website/src/components/playground/config/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const initialSvgoConfig = JSON.stringify(
const initialPrettierConfig = JSON.stringify({ semi: false }, null, 2)

export const settings = [
{
label: 'Dimensions',
name: 'dimensions',
type: 'boolean',
group: 'global',
default: true,
},
{
label: 'Icon',
name: 'icon',
Expand Down Expand Up @@ -101,6 +108,31 @@ export const settings = [
transform: parseObject,
default: '',
},
{
label: 'Export Type',
name: 'exportType',
type: 'enum',
values: ['named', 'default'],
group: 'global',
default: 'default',
},
{
label: 'Named export',
name: 'namedExport',
placeholder: 'ReactComponent',
type: 'string',
group: 'global',
default: 'ReactComponent',
},
{
label: 'JSX runtime',
name: 'jsxRuntime',
type: 'enum',
values: ['classic', 'classic-preact', 'automatic', 'none'],
group: 'global',
transform: (value) => (value === 'none' ? 'classic' : value),
default: 'none',
},
{
label: 'Enable',
name: 'svgo',
Expand Down

1 comment on commit be5d3a8

@vercel
Copy link

@vercel vercel bot commented on be5d3a8 Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svgr – ./

api.react-svgr.com
svgr-git-main-gregberge.vercel.app
svgr-gregberge.vercel.app

Please sign in to comment.