Files
supabase/apps/www/components/Layouts/SectionContainer.tsx
Francesco Sansalvadore 90ef7ea874 www: standardize container width (#47226)
Define and clean up standard container width definition for marketing
website.

PR breakdown of #43455 
Related: #47227 #47228 #47236
2026-06-24 10:26:38 +00:00

27 lines
539 B
TypeScript

'use client'
import classNames from 'classnames'
import { forwardRef, Ref } from 'react'
interface Props {
children: React.ReactNode
className?: string
id?: string
}
const SectionContainer = forwardRef(
({ children, className, id }: Props, ref: Ref<HTMLDivElement>) => (
<div
ref={ref}
id={id}
className={classNames(`section-container relative py-16 sm:py-18 md:py-24`, className)}
>
{children}
</div>
)
)
SectionContainer.displayName = 'SectionContainer'
export default SectionContainer