16 lines
447 B
TypeScript
16 lines
447 B
TypeScript
|
|
import type { FC } from 'react'
|
||
|
|
import cl from 'clsx'
|
||
|
|
import type { {{name.pascalCase}}Props } from './types/{{name.kebabCase}}.interface'
|
||
|
|
import styles from './styles/{{name.kebabCase}}.module.css'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* {{name.pascalCase}}.
|
||
|
|
*/
|
||
|
|
export const {{name.pascalCase}}: FC<{{name.pascalCase}}Props> = ({ className, ...htmlAttr }) => {
|
||
|
|
return (
|
||
|
|
<div {...htmlAttr} className={cl(styles.root, className)}>
|
||
|
|
{{name.kebabCase}}
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|