localgreenchain/components/section.tsx
2023-08-09 21:34:23 +00:00

17 lines
401 B
TypeScript

import classNames from "classnames"
interface SectionProps extends React.HTMLAttributes<HTMLElement> {
backgroundColor?: string
children?: React.ReactNode
}
export function Section({ backgroundColor, children, ...props }: SectionProps) {
return (
<section
className={classNames("py-8 md:py-12 lg:py-20", backgroundColor)}
{...props}
>
{children}
</section>
)
}