Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* ${COMPONENT_NAME} - ${DESCRIPTION}
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
${STYLE_IMPORT}
|
||||
|
||||
${PROPS_INTERFACE}
|
||||
|
||||
export const ${COMPONENT_NAME}: React.FC<${PROPS_INTERFACE}> = ({
|
||||
children,
|
||||
className,
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<div className={`${styles.container} ${className || ''}`}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
/* ${COMPONENT_NAME} Styles */
|
||||
|
||||
.container {
|
||||
${BASE_STYLES}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { ${COMPONENT_NAME} } from '${IMPORT_PATH}';
|
||||
|
||||
describe('${COMPONENT_NAME}', () => {
|
||||
${TEST_CASES}
|
||||
});
|
||||
Reference in New Issue
Block a user