Skip to content

Commit

Permalink
docs: fix tables in options.mdx (gregberge#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
shish authored Dec 1, 2022
1 parent 14d7024 commit a385ffc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/pages/docs/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Specify a JSX runtime to use.
- "automatic": do not add anything
- "classic-preact": adds `import { h } from 'preact'` on the top of file

| Default | CLI Override | API Override |
| --------- | --------------- | ---------------------- | ----------- | ----------------- |
| `classic` | `--jsx-runtime` | `jsxRuntime: 'classic' | 'automatic' | 'classic-preact'` |
| Default | CLI Override | API Override |
| --------- | --------------- | ---------------------------------------------------------- |
| `classic` | `--jsx-runtime` | `jsxRuntime: 'classic' \| 'automatic' \| 'classic-preact'` |

## JSX runtime import source

Expand All @@ -54,9 +54,9 @@ Example: `jsxRuntimeImport: { source: 'preact', specifiers: ['h'] }` for "classi

Replace SVG `width` and `height` by a custom value. If value is omitted, it uses `1em` in order to make SVG size inherits from text size.

| Default | CLI Override | API Override |
| ------- | ---------------- | -------------- | ------ | ------- |
| `false` | `--icon [value]` | `icon: boolean | string | number` |
| Default | CLI Override | API Override |
| ------- | ---------------- | ----------------------------------- |
| `false` | `--icon [value]` | `icon: boolean \| string \| number` |

> If you use `--icon` without any argument, be careful of separating files from arguments using `--`, ex: `svgr --icon -- assets/svg`
Expand Down

0 comments on commit a385ffc

Please sign in to comment.