svg-to-jsx
This parser helps you generate JSX or TSX components from your vector assets.
Interface
Options
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
|
|
| The React version you're using. Depending on your version, this parser will automatically import | |
|
|
|
| Set this to |
|
|
|
| Add an arbitrary content at the beginning of the generated file. |
|
|
|
| Add an arbitrary content at the end of the generated file. |
|
|
|
| Whether use named or default export. |
|
|
|
| Change the template of the generated named export. |
Basic usage
Last updated