svg-to-jsx
This parser helps you generate JSX or TSX components from your vector assets.
Interface
interface parser {
name: 'svg-to-jsx';
output: {
type: 'directory';
directoryPath: string;
};
options?:{
reactVersion?: string;
tsx?: boolean;
filePrefix?: string;
fileSuffix?: string;
exportDefault?: boolean;
tokenNameTemplate?: string;
}
}Options
Parameter
Required
Type
Default
Description
Basic usage
Last updated
Was this helpful?