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