We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5f51a5 commit db47c29Copy full SHA for db47c29
scripts/new-component.ts
@@ -76,11 +76,12 @@ export const ${componentName}: React.FC<${props}> = (props) => {
76
return [filename, content];
77
}
78
function initTypes(): InitRes {
79
+ const props = `${config.componentName}Props`;
80
const filename = getFilename('types');
81
const content = `
82
import React from 'react';
83
-export type DividerProps = React.HTMLAttributes<HTMLElement> & {
84
+export type ${props} = React.HTMLAttributes<HTMLElement> & {
85
name?: string;
86
};
87
`;
0 commit comments