This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/generators/component/Component.tsx.hbs

12 lines
328 B
Handlebars
Raw Normal View History

import classNames from 'clsx'
2021-10-24 05:48:06 +02:00
export interface {{ properCase name }}Props {
className?: string
}
2022-08-31 21:44:33 +02:00
export const {{ properCase name }}: React.FC<React.PropsWithChildren<{{ properCase name }}Props>> = (props) => {
2021-10-24 05:48:06 +02:00
const { children, className } = props
return <main className={classNames(className, '')}>{children}</main>
}